Skip to content

Commit

Permalink
Merge pull request #6029 from marlonbahniuk/fix-autocomplete-multiple…
Browse files Browse the repository at this point in the history
…-dropdown

Fix combination of multiple and dropdown
  • Loading branch information
tugcekucukoglu authored Jul 22, 2024
2 parents f4d8cce + e8a80ff commit fab0c62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/primevue/src/autocomplete/AutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,10 @@ export default {
if (this.overlayVisible) {
this.hide(true);
} else {
focus(this.multiple ? this.$refs.focusInput : this.$refs.focusInput.$el);
query = this.$refs.focusInput.$el.value;
let target = this.multiple ? this.$refs.focusInput : this.$refs.focusInput.$el;
focus(target);
query = target.value;
if (this.dropdownMode === 'blank') this.search(event, '', 'dropdown');
else if (this.dropdownMode === 'current') this.search(event, query, 'dropdown');
Expand Down

0 comments on commit fab0c62

Please sign in to comment.