Sfoglia il codice sorgente

fix(Application): search menu now correctly lowercases input keys (#3842)

No name 1 anno fa
parent
commit
144cdd4680
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/Application/src/search/useMenuSearch.ts

+ 1 - 1
src/components/Application/src/search/useMenuSearch.ts

@@ -49,7 +49,7 @@ export function useMenuSearch(refs: Ref<HTMLElement[]>, scrollWrap: Ref, emit: A
   function search(e: ChangeEvent) {
     e?.stopPropagation();
     const key = e.target.value;
-    keyword.value = key.trim();
+    keyword.value = key.trim().toLowerCase();
     if (!key) {
       searchResult.value = [];
       return;