ErrorPro / react-google-autocomplete

React components for google places API.
MIT License
474 stars 113 forks source link

Adding form fields dynamically to the page #230

Open bradherman opened 8 months ago

bradherman commented 8 months ago

I have my code set up as follows:

Sandbox

The code is simplified, but the behavior stands -> When the input is loaded into the DOM dynamically, it does not initialize google maps. If I make the form available at load, it works. In my code it's actually within a modal.

Is there a way to do this?