From d2d6d07f625f26b138596196322ae0c848756815 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 13 Nov 2024 14:27:25 +0300 Subject: [PATCH] Refactor #6773 --- packages/primevue/src/autocomplete/AutoComplete.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/primevue/src/autocomplete/AutoComplete.vue b/packages/primevue/src/autocomplete/AutoComplete.vue index 8c62ab205..b458e36ed 100755 --- a/packages/primevue/src/autocomplete/AutoComplete.vue +++ b/packages/primevue/src/autocomplete/AutoComplete.vue @@ -232,6 +232,7 @@ export default { this.show(); this.focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1; this.searching = false; + this.visibleOptions.length === 0 && this.hide(); } this.autoUpdateModel();