@seafile/seafile-calendar 0.0.29-alpha48 → 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.
@@ -7445,7 +7445,6 @@ var _initialiseProps = function _initialiseProps() {
7445
7445
  };
7446
7446
 
7447
7447
  this.onInputChange = function (str) {
7448
- console.log(str);
7449
7448
  var cananderStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["l" /* normalizeDateInput */])(str, _this2.state.localeFormat, _this2.state.delimiter);
7450
7449
  var _props = _this2.props,
7451
7450
  disabledDate = _props.disabledDate,
@@ -7454,15 +7453,10 @@ 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
-
7458
7456
  if (!str) {
7459
- if (!_this2.state.str) {
7460
- _this2.setState({
7461
- str: ''
7462
- });
7463
- _this2.props.onClear(null);
7464
- return;
7465
- }
7457
+ onChange(null);
7458
+ _this2.setState({ str: '' });
7459
+ return;
7466
7460
  }
7467
7461
  // 不合法直接退出
7468
7462
  var format = Object(__WEBPACK_IMPORTED_MODULE_9__util__["e" /* getDateFormatByStr */])(cananderStr, _this2.state.localeFormat);