ErrorPro / react-google-autocomplete

React components for google places API.
MIT License
473 stars 114 forks source link

<div class="pac-container pac-logo" style="display: none;"></div> elements continuously added to the DOM #183

Closed sosella closed 1 year ago

sosella commented 1 year ago

I am testing with the Autocomplete component using it almost identically to the example. When I look at the Elements tab, I see that:

and

are added to the end of the BODY tag. When I navigate to another route (e.g., home), and then back to the page with the test, I see a new

This

gets continuously added each time I return to the page.

I am using:

"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-google-autocomplete": "^2.7.0",

I doubt this is expected behavior.

sosella commented 1 year ago

Apparently this is an issue with the Google Maps Places API. Going to close it.

https://issuetracker.google.com/issues/35827219?pli=1