@seafile/seafile-calendar 0.0.29-alpha41 → 0.0.29-alpha42

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.
@@ -7320,8 +7320,7 @@ var DateInput = function (_React$Component) {
7320
7320
  str: Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* formatDate */])(selectedValue, _this.props.format),
7321
7321
  hasFocus: false,
7322
7322
  localeFormat: formatPrefix,
7323
- delimiter: Object(__WEBPACK_IMPORTED_MODULE_9__util__["b" /* delimate */])(formatPrefix),
7324
- cananderIput: ''
7323
+ delimiter: Object(__WEBPACK_IMPORTED_MODULE_9__util__["b" /* delimate */])(formatPrefix)
7325
7324
  };
7326
7325
  return _this;
7327
7326
  }
@@ -7454,7 +7453,11 @@ var _initialiseProps = function _initialiseProps() {
7454
7453
 
7455
7454
  var parts = Object(__WEBPACK_IMPORTED_MODULE_9__util__["d" /* formatDateLocal */])(cananderStr, _this2.state.localeFormat);
7456
7455
  // 没有内容,合法并直接退出
7457
- if (!str || str.length === 0) {
7456
+ if (!str) {
7457
+ if (str === '') {
7458
+ _this2.setState({ str: '' });
7459
+ return;
7460
+ }
7458
7461
  onChange(null);
7459
7462
  _this2.setState({ str: str });
7460
7463
  return;