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

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