can't tap on item in google autocomplete list on mobile

后端 未结 6 1863
轮回少年
轮回少年 2020-12-04 15:36

I\'m making a mobile-app using Phonegap and HTML. Now I\'m using the google maps/places autocomplete feature. The problem is: if I run it in my browser on my computer everyt

6条回答
  •  無奈伤痛
    2020-12-04 16:41

    There is currently a pull request on github, but this hasn't been merged yet.

    However, you can simply use this patched version of fastclick.

    The patch adds the excludeNode option which let's you exclude DOM nodes handled by fastclick via regex. This is how I used it to make google autocomplete work with fastclick:

    FastClick.attach(document.body, {
      excludeNode: '^pac-'
    });
    

提交回复
热议问题