Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ interface ISearchableDropdownProps {
disablePortal?: boolean;
}

const strictFilter = (value: string, search: string) => {
return +value.toLowerCase().includes(search.toLowerCase());
};

export const SearchableDropdown = ({
options,
value,
Expand Down Expand Up @@ -111,7 +115,7 @@ export const SearchableDropdown = ({
disablePortal={disablePortal}
collisionBoundary={typeof window !== 'undefined' ? document.body : undefined}
>
<Command>
<Command filter={strictFilter}>
<CommandInput
placeholder={placeholder}
className="h-9"
Expand Down