Merge pull request #6029 from marlonbahniuk/fix-autocomplete-multiple-dropdown

Fix combination of multiple and dropdown
pull/6101/head
Tuğçe Küçükoğlu 2024-07-22 11:14:52 +03:00 committed by GitHub
commit fab0c62dd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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');