Chrome Autofill covers Autocomplete for Google Maps API v3

后端 未结 21 1044
我在风中等你
我在风中等你 2021-02-01 00:57

I am using Google Maps Javascript v3 to setup autocomplete on an HTML input field like so:

http://imgur.com/Rm6X2FI.png - (w/out autofill)

The issue I\'m having

21条回答
  •  [愿得一人]
    2021-02-01 01:44

    To quote Elmux's comment on answer https://stackoverflow.com/a/50927328/1350573 above:

    With Chrome 71, I removed the attribute placeholder from the console, and it works automagically. If I change the attribute value for something else, it works too. Finally, avoid using the term 'Address' in the placeholder attribute. – Elmux

    For me (30th December 2018, Chrome 71) this was the correct, but non-intuitive answer.

提交回复
热议问题