@seafile/seafile-calendar 0.0.29-alpha43 → 0.0.29-alpha45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rc-calendar.js
CHANGED
@@ -7497,10 +7497,16 @@ var _initialiseProps = function _initialiseProps() {
|
|
7497
7497
|
};
|
7498
7498
|
|
7499
7499
|
this.onBlur = function () {
|
7500
|
+
if (!_this2.state.str) {
|
7501
|
+
_this2.setState({
|
7502
|
+
str: ''
|
7503
|
+
});
|
7504
|
+
_this2.props.onClear(null);
|
7505
|
+
}
|
7500
7506
|
_this2.setState(function (prevState, prevProps) {
|
7501
7507
|
return {
|
7502
7508
|
hasFocus: false,
|
7503
|
-
str:
|
7509
|
+
str: Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* formatDate */])(prevProps.value, prevProps.format)
|
7504
7510
|
};
|
7505
7511
|
});
|
7506
7512
|
};
|