Chrome Autofill covers Autocomplete for Google Maps API v3

后端 未结 21 1087
我在风中等你
我在风中等你 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:24

    You can avoid the Chrome autofill overlay by placing the places autocomplete field outside of the

    element (tested in Chrome 80.0.3987.149).

    That does of course introduce new issues in terms of structuring and styling your HTML.

    I recommend to have input fields such as or inside your element that you then fill after the user selected an address from the places autocomplete widget outside of the element.

提交回复
热议问题