Fixed #1825 - Calendar manual input doesn't work
parent
67f33b4672
commit
aec038d870
|
@ -317,6 +317,7 @@ export default {
|
||||||
overlay: null,
|
overlay: null,
|
||||||
mask: null,
|
mask: null,
|
||||||
timePickerTimer: null,
|
timePickerTimer: null,
|
||||||
|
preventFocus: false,
|
||||||
created() {
|
created() {
|
||||||
this.updateCurrentMetaData();
|
this.updateCurrentMetaData();
|
||||||
},
|
},
|
||||||
|
@ -337,6 +338,7 @@ export default {
|
||||||
},
|
},
|
||||||
updated() {
|
updated() {
|
||||||
if (this.overlay) {
|
if (this.overlay) {
|
||||||
|
this.preventFocus = true;
|
||||||
this.updateFocus();
|
this.updateFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2086,9 +2088,11 @@ export default {
|
||||||
if (cell) {
|
if (cell) {
|
||||||
cell.tabIndex = '0';
|
cell.tabIndex = '0';
|
||||||
|
|
||||||
if ((!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
|
if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
|
||||||
cell.focus();
|
cell.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.preventFocus = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trapFocus(event) {
|
trapFocus(event) {
|
||||||
|
|
Loading…
Reference in New Issue