Skip to content

Commit

Permalink
fix(select): autoFilterFocus and autoOptionFocus working together
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Michalek committed Feb 19, 2025
1 parent 10694a2 commit d71183f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/primevue/src/select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ export default {
setTimeout(() => {
this.autoFilterFocus && this.filter && focus(this.$refs.filterInput.$el);
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
}, 1);
},
onOverlayAfterEnter() {
Expand Down

0 comments on commit d71183f

Please sign in to comment.