diff --git a/src/lib/components/inputs/DropdownInput.tsx b/src/lib/components/inputs/DropdownInput.tsx index e9c125662472d2963f2203868855f11333327f74..f8571869998aa6518a316b371cc87cb3ef0db393 100644 --- a/src/lib/components/inputs/DropdownInput.tsx +++ b/src/lib/components/inputs/DropdownInput.tsx @@ -76,10 +76,8 @@ export const DropdownInput = ({ const [filteredOptions, setFilteredOptions] = React.useState<(string | number | { [key: string]: string })[]>(options); useEffect(() => { - if (autocomplete) { setFilteredOptions(options); - } - }, [options, autocomplete]); + }, [options]); const handleInputChange = (e: string) => { const inputValue = e.toLowerCase();