jquery-calendrical
jquery-calendrical copied to clipboard
When tabbing out of the "time_part" target input, focus goes to the document instead of the next focusable element.
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
I had the same problem with IE. Your solution totally works! Thanks.