@seafile/seafile-calendar 0.0.94 → 0.0.95
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 +4 -2
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/es/Calendar.js +1 -0
- package/es/date/DateInput.js +3 -2
- package/lib/Calendar.js +1 -0
- package/lib/date/DateInput.js +3 -2
- package/package.json +1 -1
package/dist/rc-calendar.js
CHANGED
@@ -3014,6 +3014,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
3014
3014
|
};
|
3015
3015
|
|
3016
3016
|
this.onKeyDown = function (event) {
|
3017
|
+
console.log(111, event);
|
3017
3018
|
if (event.target.nodeName.toLowerCase() === 'input') {
|
3018
3019
|
return undefined;
|
3019
3020
|
}
|
@@ -7409,7 +7410,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
7409
7410
|
|
7410
7411
|
this.onInputChange = function (event) {
|
7411
7412
|
var str = event.target.value;
|
7412
|
-
console.log(str);
|
7413
7413
|
var calendarStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["g" /* initializeStr */])(str, _this2.state.localFormat) || '';
|
7414
7414
|
var _props = _this2.props,
|
7415
7415
|
disabledDate = _props.disabledDate,
|
@@ -7457,7 +7457,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
7457
7457
|
};
|
7458
7458
|
|
7459
7459
|
this.onKeyDown = function (event) {
|
7460
|
-
event.
|
7460
|
+
if (event.keyCode === __WEBPACK_IMPORTED_MODULE_6_rc_util_es_KeyCode__["a" /* default */].BACKSPACE || event.keyCode === __WEBPACK_IMPORTED_MODULE_6_rc_util_es_KeyCode__["a" /* default */].DELETE) {
|
7461
|
+
event.preventDefault();
|
7462
|
+
}
|
7461
7463
|
var keyCode = event.keyCode;
|
7462
7464
|
var _props2 = _this2.props,
|
7463
7465
|
onSelect = _props2.onSelect,
|