From 7ca089e710f1cc8497f0c8c12bdc819e9eb73203 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 18 Aug 2025 09:51:37 +0200 Subject: [PATCH] fixed issue --- public/plugins/vue/tt-components/tt-autocomplete.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/plugins/vue/tt-components/tt-autocomplete.js b/public/plugins/vue/tt-components/tt-autocomplete.js index b77297973..c334d508f 100644 --- a/public/plugins/vue/tt-components/tt-autocomplete.js +++ b/public/plugins/vue/tt-components/tt-autocomplete.js @@ -114,6 +114,14 @@ Vue.component('tt-autocomplete', { } }, onInput() { + if (!this.apiUrl && this.items.length > 0) { + const lowerCaseInput = this.displayValue.toLowerCase(); + const matchingItem = this.items.find(item => item.value.toLowerCase() === lowerCaseInput); + if (matchingItem) { + this.selectSuggestion(matchingItem); + return; + } + } if (this.returnText) this.$emit('input', this.displayValue); this.fetchSuggestions(); },