I'm using Autocomplete from @react-google-maps/api and I'm running into state management conflicts with React. I'm wondering what I'm doing wrong or if it's a bug in the library itself.
The autocomplete works fine. But since it also tries to manage the input I'm getting the following error:
client.js?4d30:1 Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components
at input
at div
at div
...
Hi,
I'm using
Autocomplete
from@react-google-maps/api
and I'm running into state management conflicts with React. I'm wondering what I'm doing wrong or if it's a bug in the library itself.My code:
The autocomplete works fine. But since it also tries to manage the input I'm getting the following error:
Any thoughts?