diff --git a/packages/primevue/src/autocomplete/AutoComplete.vue b/packages/primevue/src/autocomplete/AutoComplete.vue index 6410fd8cf..4ab4665c5 100755 --- a/packages/primevue/src/autocomplete/AutoComplete.vue +++ b/packages/primevue/src/autocomplete/AutoComplete.vue @@ -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');