Flip toggle switch in 1.1 not keyboard accessible + focus issues #3656

Closed
toddparker opened this Issue Feb 28, 2012 · 0 comments

Projects

None yet

2 participants

@toddparker
Contributor

There is a regression with the flip switch that completely keeps it out of the tabindex. If you go here:
http://jquerymobile.com/test/docs/forms/forms-all.html

  1. focus in the search input
  2. hit "tab"
  3. Focus moves right into the slider's input, completely skipping the flip switch

The focus should be on the whole control (blue glow around the whole thing) and should be flipped via the keyboard's arrow keys. 1.0.1 is keyboard accessible but is lacking the focus class:
http://jquerymobile.com/demos/1.0.1/docs/forms/forms-all.html

If you manually click on the switch to try and give it focus, it sometimes gets the focus class (blue outline), sometimes not. If it get the focus class, it's never pulled off when you focus on another input.

If you click the control and flip it, you'd assume it would have focus regardless of the class, but the arrows don't change the state like it did in 1.0.1

@gseguin gseguin closed this in 22ae387 Feb 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment