Problem with Chrome, tabindex and switches

By default, Chrome does not register tabindex on the switch .

If you click on one of the radio buttons, then click on the tab, chrome will focus the first link on the page.
If you click on another type of input element, it will continue in shape, as expected.

If you place tabindex everywhere , the form will work basically as expected, except when you select (click) a switch and then insert a tab, select the first element.

How can I reproduce the same experience as in IE / FF?

+4
source share
1 answer

I also ran into this problem. I realized that if you gave each radio button, then it will have the name ~ name = unique
~ name = unique2
~ name = unique3, which will work with tabindex.
Check out this site: Trick Form: Set Tab Order
You can see how it has different name values ​​for all the switches.

Hope this helps, Diana

+1
source

Source: https://habr.com/ru/post/1437424/


All Articles