@seafile/seafile-calendar 0.0.29-alpha51 → 0.0.29-alpha53
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.
package/dist/rc-calendar.js
CHANGED
@@ -7455,6 +7455,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
7455
7455
|
// 没有内容,合法并直接退出
|
7456
7456
|
if (!str) {
|
7457
7457
|
onChange(null);
|
7458
|
+
_this2.onClear();
|
7458
7459
|
_this2.setState({ str: '' });
|
7459
7460
|
return;
|
7460
7461
|
}
|
@@ -7498,13 +7499,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
7498
7499
|
};
|
7499
7500
|
|
7500
7501
|
this.onBlur = function () {
|
7501
|
-
if (!_this2.state.str) {
|
7502
|
-
_this2.setState({
|
7503
|
-
str: ''
|
7504
|
-
});
|
7505
|
-
_this2.props.onClear(null);
|
7506
|
-
return;
|
7507
|
-
}
|
7508
7502
|
_this2.setState(function (prevState, prevProps) {
|
7509
7503
|
return {
|
7510
7504
|
hasFocus: false,
|