@seafile/seafile-calendar 0.0.31-Apph0.58 → 0.0.31-Apph0.59

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.
@@ -7420,14 +7420,15 @@ var _initialiseProps = function _initialiseProps() {
7420
7420
  onChange = _props.onChange,
7421
7421
  selectedValue = _props.selectedValue,
7422
7422
  shouldDisplayCurrent = _props.shouldDisplayCurrent,
7423
- openValue = _props.openValue;
7423
+ openValue = _props.openValue,
7424
+ onClear = _props.onClear;
7424
7425
 
7425
7426
  console.log('openValue', openValue);
7426
7427
  // 没有内容,合法并直接退出
7427
7428
  if (!str || !calendarStr) {
7428
7429
  if (shouldDisplayCurrent) {
7429
7430
  _this2.setState({ str: '' });
7430
- onChange(openValue);
7431
+ onClear(openValue);
7431
7432
  return;
7432
7433
  }
7433
7434
  _this2.onClear();