From c50abd597f3559a437f22d060e87874513d05b6b Mon Sep 17 00:00:00 2001 From: KoloMl Date: Mon, 3 Jun 2024 21:35:18 +0400 Subject: [PATCH 1/2] Fixed z-index position of the autocomplete list --- assets/css/views/_tags.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/views/_tags.scss b/assets/css/views/_tags.scss index 6626dda4..331ff13d 100644 --- a/assets/css/views/_tags.scss +++ b/assets/css/views/_tags.scss @@ -43,6 +43,7 @@ position: absolute; user-select: none; white-space: nowrap; + z-index: 999; } .autocomplete__item { From 0381409862ba8d9ac767ccdad787fd88407f0191 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Mon, 3 Jun 2024 21:42:58 +0400 Subject: [PATCH 2/2] Lowercasing term before running the auto-completion on it --- assets/js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/autocomplete.js b/assets/js/autocomplete.js index 1b7c6fd8..1551a6f8 100644 --- a/assets/js/autocomplete.js +++ b/assets/js/autocomplete.js @@ -229,7 +229,7 @@ function listenAutocomplete() { return; } - originalTerm = selectedTerm[1]; + originalTerm = selectedTerm[1].toLowerCase(); } else { originalTerm = `${inputField.value}`.toLowerCase();