react-admin
react-admin copied to clipboard
fix autocomplete sets previous value using onInputChange
Problem
When providing onInputChange to an AutocompleteInput, a useEffect is run and resets the Textbox's value to the previous value.
As a result, users can not manually type a value when onInputChange provided.
Solution
It turns out the useEffect is not necessary if React-Admin's custom onInputChange properly sets the Textbox's state whenever it is called.
@tdni any news on this one?