Select: filter and auto-filter-focus error fix
parent
bd7161298a
commit
bd38ea66ff
|
@ -688,7 +688,7 @@ export default {
|
||||||
this.scrollInView();
|
this.scrollInView();
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.autoFilterFocus && this.filter && focus(this.$refs.filterInput.$el);
|
this.autoFilterFocus && this.filter && focus(this.$refs.filterInput?.$el);
|
||||||
}, 1);
|
}, 1);
|
||||||
},
|
},
|
||||||
onOverlayAfterEnter() {
|
onOverlayAfterEnter() {
|
||||||
|
@ -705,7 +705,7 @@ export default {
|
||||||
|
|
||||||
if (this.autoFilterFocus && this.filter && !this.editable) {
|
if (this.autoFilterFocus && this.filter && !this.editable) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
focus(this.$refs.filterInput.$el);
|
focus(this.$refs.filterInput?.$el);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue