In both Firefox and Chrome with touch enabled (both on desktop and mobile) I'm able to toggle toggleswitches even on disabled toggles.
The first commit adds what was supposed to be a failing test, but the test passes (false negative). I am not sure why.
The second commit returns from the handleClick and handleTouchStart functions if the control is disabled. This fixes the bug for me in manual tests. (And the faulty test still passes.)
In both Firefox and Chrome with touch enabled (both on desktop and mobile) I'm able to toggle toggleswitches even on disabled toggles.
The first commit adds what was supposed to be a failing test, but the test passes (false negative). I am not sure why.
The second commit returns from the handleClick and handleTouchStart functions if the control is disabled. This fixes the bug for me in manual tests. (And the faulty test still passes.)