Skip to content

Commit

Permalink
fix: add optional chaining on FilterInput ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Reddy Uppathi committed Nov 17, 2024
1 parent 1afbef6 commit a56b523
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.$nextTick(() => {
focus(this.$refs.filterInput.$el);
focus(this.$refs.filterInput?.$el);
});
}
Expand Down

0 comments on commit a56b523

Please sign in to comment.