From a68ddb6fc863b386cebbc62f7cd80fe4225ba017 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis Date: Mon, 20 Nov 2023 15:30:01 +0100 Subject: [PATCH] admin.search.autocomplete.js: Fix minQueryLength to stick to its meaning `ibexa.site_access.config..search.suggestion.min_query_length: 3` should mean that suggestion start to be made for a 3 character long text. With `<=` it was starting at 4 characters. With `<` it starts at 3. --- .../Resources/public/js/scripts/admin.search.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/scripts/admin.search.autocomplete.js b/src/bundle/Resources/public/js/scripts/admin.search.autocomplete.js index 8f56027d84..581be63395 100644 --- a/src/bundle/Resources/public/js/scripts/admin.search.autocomplete.js +++ b/src/bundle/Resources/public/js/scripts/admin.search.autocomplete.js @@ -74,7 +74,7 @@ searchAbortController?.abort(); - if (searchText.length <= minQueryLength) { + if (searchText.length < minQueryLength) { hideAutocomplete(); return;