Skip to content

Commit

Permalink
Select: filter and auto-filter-focus error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Reddy Uppathi committed Nov 22, 2024
1 parent bd71612 commit bd38ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/primevue/src/select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ export default {
this.scrollInView();
setTimeout(() => {
this.autoFilterFocus && this.filter && focus(this.$refs.filterInput.$el);
this.autoFilterFocus && this.filter && focus(this.$refs.filterInput?.$el);
}, 1);
},
onOverlayAfterEnter() {
Expand All @@ -705,7 +705,7 @@ export default {
if (this.autoFilterFocus && this.filter && !this.editable) {
this.$nextTick(() => {
focus(this.$refs.filterInput.$el);
focus(this.$refs.filterInput?.$el);
});
}
Expand Down

0 comments on commit bd38ea6

Please sign in to comment.