It seems that the filter feature does not work when the 'options' used is an array of primitives, such as an array of strings.
For instance:
Code: Select all
export default function MyComponent() {
const [selected, setSelected] = useState<string>('');
const options: string[] = ['a', 'b', 'c'];
return (
<Dropdown
options={options}
value={selected}
onChange={(e) => setSelected(e.value)}
placeholder="Select an option"
/>
);
}
Thank you