@seafile/seafile-calendar 0.0.29-alpha46 → 0.0.29-alpha47

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.
@@ -7453,10 +7453,15 @@ var _initialiseProps = function _initialiseProps() {
7453
7453
 
7454
7454
  var parts = Object(__WEBPACK_IMPORTED_MODULE_9__util__["d" /* formatDateLocal */])(cananderStr, _this2.state.localeFormat);
7455
7455
  // 没有内容,合法并直接退出
7456
+
7456
7457
  if (!str) {
7457
- onChange(null);
7458
- _this2.setState({ str: str });
7459
- return;
7458
+ if (!_this2.state.str) {
7459
+ _this2.setState({
7460
+ str: ''
7461
+ });
7462
+ _this2.props.onClear(null);
7463
+ return;
7464
+ }
7460
7465
  }
7461
7466
  // 不合法直接退出
7462
7467
  var format = Object(__WEBPACK_IMPORTED_MODULE_9__util__["e" /* getDateFormatByStr */])(cananderStr, _this2.state.localeFormat);