Skip to content
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

When tabbing out of the "time_part" target input, focus goes to the document instead of the next focusable element. #31

Open
pivotal-casebook opened this issue May 17, 2013 · 1 comment

Comments

@pivotal-casebook
Copy link

This breaks tab navigation of forms that use the time selector dropdown. I think what is happening is that the next focusable element in the DOM is the time selector dropdown, but the blur event callback for the time input destroys the dropdown so the focus ends up "nowhere" (the document). We have fixed this locally by adding the following to the blur event callback after the time dropdown is destroyed:

$(":input:not(:hidden):eq(" + ($(":input:not(:hidden)").index(this) + 1) + ")").focus()

If there is interest in our fix, we would be happy to put in a pull request.

-Alex & Sam

@erezlernerqnomy
Copy link

I had the same problem with IE.
Your solution totally works!
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants