fix: check filter input reference before focusing
parent
8cf3f0c26b
commit
dea20c573b
|
@ -706,7 +706,9 @@ export default {
|
|||
|
||||
if (this.autoFilterFocus && this.filter && !this.editable) {
|
||||
this.$nextTick(() => {
|
||||
focus(this.$refs.filterInput.$el);
|
||||
if (this.$refs.filterInput) {
|
||||
focus(this.$refs.filterInput.$el);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue