refactor: Improve search functionality in SuggestionsMenu (#7411)

This commit is contained in:
DiamondYuan authored and GitHub committed 2024-08-19 04:47:21 -07:00
1 parent 300d0c56ac
commit b82a379c0e
1 file changed
+1
@@ -433,6 +433,7 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) {
}
return (
(item.name || "").toLocaleLowerCase().includes(searchInput) ||
(item.title || "").toLocaleLowerCase().includes(searchInput) ||
(item.keywords || "").toLocaleLowerCase().includes(searchInput)
);