@seafile/seafile-calendar 1.0.11-beta.2 → 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 CHANGED
@@ -367,10 +367,9 @@ var _initialiseProps = function _initialiseProps() {
367
367
  };
368
368
 
369
369
  this.onClear = function () {
370
- console.log('onClear');
371
- _this2.onSelect(null);
370
+ _this2.onSelect(null, { source: 'clear' });
372
371
  _this2.props.onClear();
373
- // this.setState({ currentStatus: CALENDAR_STATUS.CURRENT_TIME });
372
+ _this2.setState({ currentStatus: CALENDAR_STATUS.CURRENT_TIME });
374
373
  };
375
374
 
376
375
  this.onOk = function () {
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,10 +431,9 @@ var _initialiseProps = function _initialiseProps() {
431
431
  };
432
432
 
433
433
  this.onClear = function () {
434
- console.log('onClear');
435
- _this2.onSelect(null);
434
+ _this2.onSelect(null, { source: 'clear' });
436
435
  _this2.props.onClear();
437
- // this.setState({ currentStatus: CALENDAR_STATUS.CURRENT_TIME });
436
+ _this2.setState({ currentStatus: _util.CALENDAR_STATUS.CURRENT_TIME });
438
437
  };
439
438
 
440
439
  this.onOk = function () {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-calendar",
3
- "version": "1.0.11-beta.2",
3
+ "version": "1.0.11-beta.4",
4
4
  "description": "React Calendar",
5
5
  "keywords": [
6
6
  "react",