Minor bugfix regarding compatibility with previous Autocomplete API
This commit is contained in:
parent
ca0ae9cb1f
commit
8447795802
|
@ -29,7 +29,7 @@ const Autocomplete = props => {
|
|||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
props.onChange(value);
|
||||
props.onChange && props.onChange(value);
|
||||
}, [ value ]);
|
||||
|
||||
const getSuggestions = value => {
|
||||
|
|
Loading…
Reference in New Issue