Skip to content

Iphone : Go button does not close the keyboard with Data filter #3303

Closed
lijumathews opened this Issue Dec 19, 2011 · 6 comments

6 participants

@lijumathews

I have a data filter set on a UL list. On an I phone the keyboard popups when I focus on the filter input and the filter does work as expected when I type letters. The Issue here is that as the form does not have a submit or an action set to the form, the keyboard "GO" button does not close the keyboard. We need to either hit the done button or remove focus from the input element by clicking anywhere in the screen.
I need to be able to close the keyboard on clicking "GO" or remove the button if it does nothing.
Thanks,
Liju

@rbdcti
rbdcti commented Mar 22, 2012

+1 ...noticed this issue too

@jaspermdegroot
jQuery Foundation member

@toddparker - What do you think about setting focus on the first list item on GO/enter or down arrow?

@toddparker

That seems like a good idea to me. +1

@toddparker

The best approach may be to tap into the native form submit so this will work as expected across all platforms. When the firms submits, we cancel that, blur the input and focus on the first list item that's visible. Mapping the Esc or down key is a nice secondary accelerator.

@jasondscott jasondscott was assigned Jun 8, 2012
@toddparker

@jasondscott - maybe you can look at making this tweak?

@gseguin gseguin was assigned Jul 19, 2012
@gseguin
jQuery Foundation member
gseguin commented Nov 15, 2012

Do we even need to focus the first list item? What would be the purpose?

@gseguin gseguin closed this in 336db34 Nov 15, 2012
@gseguin gseguin added a commit that referenced this issue Nov 15, 2012
@gseguin gseguin Blur the search field on submit -- Fixes #3303
(cherry picked from commit 336db34)
fef41bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.