When setting tabIndex on a Switch, in the final rendered DOM the tabindex attribute ends up being placed on the outer-most div.mdc-switch, instead of the inner input element it needs to be on to have any effect. This makes it kind of impossible (without getting hacky) to set the tab order for a Switch.
When setting
tabIndex
on aSwitch
, in the final rendered DOM thetabindex
attribute ends up being placed on the outer-mostdiv.mdc-switch
, instead of the innerinput
element it needs to be on to have any effect. This makes it kind of impossible (without getting hacky) to set the tab order for aSwitch
.