Make search case insensitive

This commit is contained in:
Ben Benedek
2024-08-28 16:44:32 -04:00
committed by Jonathan Fishner
parent 8608101660
commit c2cb1ea0e1

View File

@@ -102,7 +102,12 @@ export const Combobox = React.forwardRef<HTMLDivElement, ComboboxProps>(
>
<Command
filter={(value, search) => {
if (value.includes(search)) return 1;
if (
value
.toLowerCase()
.includes(search.toLowerCase())
)
return 1;
return 0;
}}
// shouldFilter={true}