@seafile/seafile-calendar 1.0.11 → 1.0.13-alpha.1

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/Picker.js CHANGED
@@ -176,7 +176,7 @@ var _initialiseProps = function _initialiseProps() {
176
176
  };
177
177
 
178
178
  this.onCalendarClear = function () {
179
- _this2.close(_this2.focus);
179
+ // Click clear button, do not close the time picker
180
180
  };
181
181
 
182
182
  this.onCalendarBlur = function () {
@@ -103,7 +103,7 @@ var DateInput = function (_React$Component) {
103
103
  tabIndex: '0'
104
104
  })
105
105
  ),
106
- props.showClear && React.createElement(
106
+ props.showClear && !!str && React.createElement(
107
107
  'a',
108
108
  {
109
109
  role: 'button',
package/lib/Picker.js CHANGED
@@ -212,7 +212,7 @@ var _initialiseProps = function _initialiseProps() {
212
212
  };
213
213
 
214
214
  this.onCalendarClear = function () {
215
- _this2.close(_this2.focus);
215
+ // Click clear button, do not close the time picker
216
216
  };
217
217
 
218
218
  this.onCalendarBlur = function () {
@@ -135,7 +135,7 @@ var DateInput = function (_React$Component) {
135
135
  tabIndex: '0'
136
136
  })
137
137
  ),
138
- props.showClear && _react2['default'].createElement(
138
+ props.showClear && !!str && _react2['default'].createElement(
139
139
  'a',
140
140
  {
141
141
  role: 'button',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-calendar",
3
- "version": "1.0.11",
3
+ "version": "1.0.13-alpha.1",
4
4
  "description": "React Calendar",
5
5
  "keywords": [
6
6
  "react",