rc-calendar
Advanced tools
Comparing version 3.8.2 to 3.8.3
@@ -168,2 +168,9 @@ 'use strict'; | ||
function getNowByCurrentStateValue(value) { | ||
value = value || getNow(); | ||
value = value.clone(); | ||
value.setTime(Date.now()); | ||
return value; | ||
} | ||
var Calendar = (function (_React$Component) { | ||
@@ -208,3 +215,3 @@ function Calendar(props) { | ||
if (value !== undefined) { | ||
value = value || nextProps.defaultValue || getNow(); | ||
value = value || nextProps.defaultValue || getNowByCurrentStateValue(this.state.value); | ||
this.setState({ | ||
@@ -211,0 +218,0 @@ value: value |
{ | ||
"name": "rc-calendar", | ||
"version": "3.8.2", | ||
"version": "3.8.3", | ||
"description": "calendar ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135251
3896