Skip to content
Snippets Groups Projects
Commit 5e3e078b authored by Nicolas F. Chaves de Plaza's avatar Nicolas F. Chaves de Plaza Committed by Leonardo Christino
Browse files

fix(inputs-dropdown): options set regardless of autocomplete mode

parent 6f55b01f
No related branches found
Tags v1.146.2
1 merge request!402fix(inputs-dropdown): options set regardless of autocomplete mode
Pipeline #145102 passed
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment