Google Places Autocomplete plugin isnt working in Firefox android -


we using google's places-autocomplete plugin on our website.

of late have received several complaints our website visitors plugin isn't working in android version of firefox. works fine in desktop version of firefox however.

the problem can observed

  1. going places-autocomplete example here
  2. trying enter zip code in "enter location" search input

you observe following 2 issues -

  1. google auto-complete should show suggestions start typing zip code. doesn't until 1 types space or , after 5 digit zip code.
  2. when suggestions show (after typing space or ,), can't choose first suggestion. tap on it, cursor moves search input. can choose second or third suggestion correctly.

problem #2 extremely annoying , frustrating user. we've had received several complaints this.

i have confirmed on firefox version 36.0.2 on samsung s4 running android 4.4.2.

how can resolved?

a work around second issue give first autocomplete suggestion top margin user can click it. not pretty functional.

css

.firefoxandroid .pac-container .pac-item:first-child {      margin-top: 20px; } 

js

<script>      var is_firefox = navigator.useragent.tolowercase().indexof('firefox') > -1;          var is_android = navigator.useragent.tolowercase().indexof('android') > -1;       if(is_firefox && is_android){          $('html').addclass('firefoxandroid');     } </script> 

Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -