fullstackreact / google-maps-react

Companion code to the "How to Write a Google Maps React Component" Tutorial
https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/
MIT License
1.64k stars 819 forks source link

Autofocus in input field and google-maps-react #219

Open wildpow opened 6 years ago

wildpow commented 6 years ago

I have a input field set to autofocus on the same page as my map. When the you click on the pin in the map the info window pops up, then the page jump to the auto-focused input field. The kicker is this only happens in mobile Chrome on Android. Has anyone else experienced this before?

I'm using React 16.2 and google-maps-react 2.0.2

wildpow commented 6 years ago

Code Sand Box Only happens in mobile Chrome on Android. If this link does reproduce the issue I can make a Netlify link as well.