-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working in mobile Android browser #36
Comments
I managed to find a workaround. Just add a keydown event listener and call the methods hide and show. With jQuery it looks like this:
|
Is this still the case? |
Yep. Still the same. I tried it again with the latest Android Chrome Browser. |
@karsunke thanks for the workaround! Although, it does ruin UX/accessibility since the user can no longer navigate the autocomplete list via the keyboard. The workaround hides then shows the list again on arrow press, which resets the selection item. |
@karsunke this does the same except maintains the user's ability to navigate the list via keyboard arrows:
|
@akrawchyk Thanks for the addition. |
Alas, Chrome is pretty painful with keydown events and soft keyboards, here is the WONTFIX bug from 2012 with 259 comments! https://bugs.chromium.org/p/chromium/issues/detail?id=118639 Solution might be to use the newer "input" rather than keydown event which is supported by everything since IE9 https://developer.mozilla.org/en/docs/Web/API/GlobalEventHandlers/oninput |
Hi @karsunke i am facing the same issue can you please help me out. I tried your approach but i didn't got what can you please give me an example?
this is my code, can you please correct the code and tell me where i am going wrong? |
I tried horsey on several devices. It works in every Desktop browser I tested. Also on iOS browsers. But there seems to be a problem with the mobile Android browser (Chrome).
Typing in the box does not fire any events. No list is shown. I debugged it and there is no error message. You can test it at the sample page http://bevacqua.github.io/horsey/
The text was updated successfully, but these errors were encountered: