fix: check filter input reference before focusing

pull/7186/head^2
navedqb 2025-02-04 15:25:00 +05:30 committed by GitHub
parent 8cf3f0c26b
commit dea20c573b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -706,7 +706,9 @@ export default {
if (this.autoFilterFocus && this.filter && !this.editable) {
this.$nextTick(() => {
if (this.$refs.filterInput) {
focus(this.$refs.filterInput.$el);
}
});
}