From f31e4d9480a76a8e0b157b56768713028951a43e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 5 Dec 2022 09:46:08 +0300 Subject: [PATCH] Fixed #3161 - AutoComplete: the forceSelection property causes inconsistent behavior when the value is removed --- src/components/autocomplete/AutoComplete.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/autocomplete/AutoComplete.vue b/src/components/autocomplete/AutoComplete.vue index c974d244e6..8627e297b0 100755 --- a/src/components/autocomplete/AutoComplete.vue +++ b/src/components/autocomplete/AutoComplete.vue @@ -510,7 +510,7 @@ export default { let valid = false; if (this.visibleOptions) { - const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, event.target.value)); + const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, this.$refs.focusInput.value || '')); if (matchedValue !== undefined) { valid = true;