@seafile/seafile-calendar 1.0.11-beta.3 → 1.0.11-beta.4
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/es/Calendar.js +0 -1
- package/es/Picker.js +1 -1
- package/lib/Calendar.js +0 -1
- package/lib/Picker.js +1 -1
- package/package.json +1 -1
package/es/Calendar.js
CHANGED
|
@@ -367,7 +367,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
this.onClear = function () {
|
|
370
|
-
console.log('onClear');
|
|
371
370
|
_this2.onSelect(null, { source: 'clear' });
|
|
372
371
|
_this2.props.onClear();
|
|
373
372
|
_this2.setState({ currentStatus: CALENDAR_STATUS.CURRENT_TIME });
|
package/es/Picker.js
CHANGED
|
@@ -156,7 +156,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
156
156
|
value: value
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
|
|
159
|
+
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' && cause.source !== 'clear' || cause.source === 'todayButton') {
|
|
160
160
|
if (!_this2.props.isRemainOpen) {
|
|
161
161
|
_this2.close(_this2.focus);
|
|
162
162
|
}
|
package/lib/Calendar.js
CHANGED
|
@@ -431,7 +431,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
431
431
|
};
|
|
432
432
|
|
|
433
433
|
this.onClear = function () {
|
|
434
|
-
console.log('onClear');
|
|
435
434
|
_this2.onSelect(null, { source: 'clear' });
|
|
436
435
|
_this2.props.onClear();
|
|
437
436
|
_this2.setState({ currentStatus: _util.CALENDAR_STATUS.CURRENT_TIME });
|
package/lib/Picker.js
CHANGED
|
@@ -192,7 +192,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
192
192
|
value: value
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
|
|
195
|
+
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' && cause.source !== 'clear' || cause.source === 'todayButton') {
|
|
196
196
|
if (!_this2.props.isRemainOpen) {
|
|
197
197
|
_this2.close(_this2.focus);
|
|
198
198
|
}
|