Minor bugfix regarding compatibility with previous Autocomplete API

This commit is contained in:
Rainer Simon 2021-11-19 10:20:16 +01:00
parent ca0ae9cb1f
commit 8447795802
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ const Autocomplete = props => {
}, []); }, []);
useEffect(() => { useEffect(() => {
props.onChange(value); props.onChange && props.onChange(value);
}, [ value ]); }, [ value ]);
const getSuggestions = value => { const getSuggestions = value => {