From 2fd138563bb0c017a1072e79fe78e6479086e9d1 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 9 Jul 2022 12:35:20 +1000 Subject: Fix search suggestions wrong-text on mobile Turns out the input wasn't converted to lowercase before being matched with suggestion data, and this was more noticeable on mobile due to auto-capitalisation --- src/components/SearchModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/SearchModal.vue') diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue index 9dc8f9b..025ed71 100644 --- a/src/components/SearchModal.vue +++ b/src/components/SearchModal.vue @@ -92,7 +92,7 @@ export default defineComponent({ }, suggDisplayStrings(): [string, string, string][] { let result: [string, string, string][] = []; - let input = this.suggsInput; + let input = this.suggsInput.toLowerCase(); // For each SearchSugg for (let sugg of this.searchSuggs){ let idx = sugg.name.indexOf(input); -- cgit v1.2.3