We are building a mobile site for our product ridingo.
We use the google places autocomplete feature extensively on our site. This is used to provide suggestions to users as they type.
We tested this across multiple browsers and on devices. This is working fine in Android devices and IOS. But, on Windows mobile (OS Version 8, IE browser), the autocomplete/autopopulate list is almost unusable
Problems:
- We are unable to touch the desired item on the autopopulate list. When touching it, it automatically closes the list (behavior similar to what we'd see when we press "ESC" button or click somewhere else on the window). Because of this, we cannot get any list item selected.
- The list gets rendered at a slightly lower place than the text box. This problem can be screen on the screenshot too.
Tech stuff We use :
- jQuery 1.7.1
- twitter bootstrap 2.3.2
Found workarounds for both problems.
Workaround for problem #2
JS (add this just after the autocomplete initialization code):
CSS:
Workaround for problem #1 (thanks to Lille and Engineer - what javascript will simulate selection from the google maps api 3 places autocomplete dropdown? )
requires jquery.simulate.js
I've tried to do a little tweak with jquery. It is a temporary solution, hopefully google will manage to solve this bug.
Ive added following code after initializing my autocomplete text field:
And when loading:
It only works on the second enter of a character, but at least it works for this time.