Ver código fonte

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

No name 1 ano atrás
pai
commit
144cdd4680

+ 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;