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

This commit is contained in:
No name
2024-05-14 14:07:57 +08:00
committed by GitHub
parent 1fee161786
commit 144cdd4680

View File

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