mirror of
https://github.com/chartdb/chartdb.git
synced 2026-01-08 12:50:01 -06:00
Make search case insensitive
This commit is contained in:
committed by
Jonathan Fishner
parent
8608101660
commit
c2cb1ea0e1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user