Fixed #1825 - Calendar manual input doesn't work

pull/1885/head
yigitfindikli 2021-12-06 19:32:11 +03:00
parent 67f33b4672
commit aec038d870
1 changed files with 5 additions and 1 deletions

View File

@ -317,6 +317,7 @@ export default {
overlay: null,
mask: null,
timePickerTimer: null,
preventFocus: false,
created() {
this.updateCurrentMetaData();
},
@ -337,6 +338,7 @@ export default {
},
updated() {
if (this.overlay) {
this.preventFocus = true;
this.updateFocus();
}
@ -2086,9 +2088,11 @@ export default {
if (cell) {
cell.tabIndex = '0';
if ((!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
cell.focus();
}
this.preventFocus = false;
}
},
trapFocus(event) {