Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

Make search case insensitive

Ben Benedekc2cb1ea0e123
diff --git a/src/components/combobox/combobox.tsx b/src/components/combobox/combobox.tsx
index 54ffca14..14fd38a1 100644
--- a/src/components/combobox/combobox.tsx
+++ b/src/components/combobox/combobox.tsx
@@ -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}