Fixed #2881 - AutoComplete: setTimeout() in hide-function sometimes causes NULL-Pointer Exception

pull/2910/head
mertsincan 2022-08-29 10:29:58 +01:00
parent e3a87ea5e3
commit af8efc4c3a
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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