jquery-calendrical icon indicating copy to clipboard operation
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.

Open pivotal-casebook opened this issue 11 years ago • 1 comments

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

pivotal-casebook avatar May 17 '13 16:05 pivotal-casebook

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

erezlernerqnomy avatar Dec 13 '16 08:12 erezlernerqnomy