From 2eeca3d421295c37287fc0503059f58d9876a699 Mon Sep 17 00:00:00 2001 From: Adrien Delessert Date: Wed, 17 Jul 2024 12:10:06 -0400 Subject: [PATCH] Fix autocomplete when combining dropdown and multiple options --- packages/primevue/src/autocomplete/AutoComplete.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/autocomplete/AutoComplete.vue b/packages/primevue/src/autocomplete/AutoComplete.vue index 6410fd8cff..5a87f8b127 100755 --- a/packages/primevue/src/autocomplete/AutoComplete.vue +++ b/packages/primevue/src/autocomplete/AutoComplete.vue @@ -512,7 +512,7 @@ export default { this.hide(true); } else { focus(this.multiple ? this.$refs.focusInput : this.$refs.focusInput.$el); - query = this.$refs.focusInput.$el.value; + query = this.multiple ? this.$refs.focusInput.value : this.$refs.focusInput.$el.value; if (this.dropdownMode === 'blank') this.search(event, '', 'dropdown'); else if (this.dropdownMode === 'current') this.search(event, query, 'dropdown');