Fixed #2881 - AutoComplete: setTimeout() in hide-function sometimes causes NULL-Pointer Exception
parent
e3a87ea5e3
commit
af8efc4c3a
|
@ -284,7 +284,7 @@ export default {
|
|||
this.overlayVisible = false;
|
||||
this.focusedOptionIndex = -1;
|
||||
|
||||
isFocus && this.$refs.focusInput.focus();
|
||||
isFocus && this.$refs.focusInput && this.$refs.focusInput.focus();
|
||||
}
|
||||
|
||||
setTimeout(() => { _hide() }, 0); // For ScreenReaders
|
||||
|
|
|
@ -204,7 +204,7 @@ export default {
|
|||
this.activeOptionPath = [];
|
||||
this.focusedOptionInfo = { index: -1, level: 0, parentKey: '' };
|
||||
|
||||
isFocus && this.$refs.focusInput.focus();
|
||||
isFocus && this.$refs.focusInput && this.$refs.focusInput.focus();
|
||||
}
|
||||
|
||||
setTimeout(() => { _hide() }, 0); // For ScreenReaders
|
||||
|
|
|
@ -269,7 +269,7 @@ export default {
|
|||
this.focusedOptionIndex = -1;
|
||||
this.searchValue = '';
|
||||
|
||||
isFocus && this.$refs.focusInput.focus();
|
||||
isFocus && this.$refs.focusInput && this.$refs.focusInput.focus();
|
||||
}
|
||||
|
||||
setTimeout(() => { _hide() }, 0); // For ScreenReaders
|
||||
|
|
Loading…
Reference in New Issue