@seafile/seafile-calendar 1.0.7 → 1.0.8
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 +3 -1
- package/lib/Picker.js +3 -1
- package/package.json +1 -1
package/es/Picker.js
CHANGED
|
@@ -157,7 +157,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
|
|
160
|
-
|
|
160
|
+
if (!_this2.props.isRemainOpen) {
|
|
161
|
+
_this2.close(_this2.focus);
|
|
162
|
+
}
|
|
161
163
|
}
|
|
162
164
|
props.onChange(value);
|
|
163
165
|
};
|
package/lib/Picker.js
CHANGED
|
@@ -193,7 +193,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
|
|
196
|
-
|
|
196
|
+
if (!_this2.props.isRemainOpen) {
|
|
197
|
+
_this2.close(_this2.focus);
|
|
198
|
+
}
|
|
197
199
|
}
|
|
198
200
|
props.onChange(value);
|
|
199
201
|
};
|