Google Places Autocomplete place_changed event fires after form submission when pressing enter

后端 未结 1 1793
陌清茗
陌清茗 2021-01-12 07:26

I\'ve added google.maps.places.Autocomplete from the Google Maps Javascript API V3 to a basic search form. I am trying to find a reliable way to detect whether the user has

1条回答
  •  無奈伤痛
    2021-01-12 07:38

    Having the exact same problem here. The Autocomplete library doesn't provide any other event than place_changed. There is also no status property e.g. request_pending.

    There is a "hack" from mmalone here: Google Autocomplete - enter to select Worked great for me.

    0 讨论(0)
提交回复
热议问题