Merge pull request #6510 from avramz/fix/select-autofocus
#6420 fix: Select: autoFilterFocus stuck when switching between Selectspull/6537/head
commit
798fedd2a7
|
@ -689,7 +689,9 @@ export default {
|
||||||
this.alignOverlay();
|
this.alignOverlay();
|
||||||
this.scrollInView();
|
this.scrollInView();
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
this.autoFilterFocus && focus(this.$refs.filterInput.$el);
|
this.autoFilterFocus && focus(this.$refs.filterInput.$el);
|
||||||
|
}, 1);
|
||||||
},
|
},
|
||||||
onOverlayAfterEnter() {
|
onOverlayAfterEnter() {
|
||||||
this.bindOutsideClickListener();
|
this.bindOutsideClickListener();
|
||||||
|
@ -705,6 +707,7 @@ export default {
|
||||||
|
|
||||||
this.autoFilterFocus && focus(this.$refs.focusInput);
|
this.autoFilterFocus && focus(this.$refs.focusInput);
|
||||||
this.$emit('hide');
|
this.$emit('hide');
|
||||||
|
|
||||||
this.overlay = null;
|
this.overlay = null;
|
||||||
},
|
},
|
||||||
onOverlayAfterLeave(el) {
|
onOverlayAfterLeave(el) {
|
||||||
|
|
Loading…
Reference in New Issue