Merge pull request #6510 from avramz/fix/select-autofocus

#6420 fix: Select: autoFilterFocus stuck when switching between Selects
pull/6537/head
Tuğçe Küçükoğlu 2024-10-02 10:24:19 +03:00 committed by GitHub
commit 798fedd2a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -689,7 +689,9 @@ export default {
this.alignOverlay();
this.scrollInView();
setTimeout(() => {
this.autoFilterFocus && focus(this.$refs.filterInput.$el);
}, 1);
},
onOverlayAfterEnter() {
this.bindOutsideClickListener();
@ -705,6 +707,7 @@ export default {
this.autoFilterFocus && focus(this.$refs.focusInput);
this.$emit('hide');
this.overlay = null;
},
onOverlayAfterLeave(el) {