Hi,
Looking at the examples page, is there a way to access the event from within the handlePlacesChanged() method?
It accidentally triggers a form submit in my code and I'd like to e.preventDefault() it.
Thanks
Please refer to Getting Help section in the README (or #469).
For anyone else stumbling across this, add this to the <input>
onKeyDown={(e) => {
if (e.keyCode == '13')
e.preventDefault()
}}
https://stackoverflow.com/questions/11388251/google-autocomplete-enter-to-select/28373354
Most helpful comment
For anyone else stumbling across this, add this to the <input>
https://stackoverflow.com/questions/11388251/google-autocomplete-enter-to-select/28373354