Checkbox in toggle mode sends its label element as event.targetto change handler method instead of actual input="checkbox" and therefor there is no way of determine current value of the toggle. As a result, each toggle at the form needs to have its own on-change handler which update exclusively its own state -> produces too much boiler-plate code
Checkbox in toggle mode sends its label element as
event.target
to change handler method instead of actualinput="checkbox"
and therefor there is no way of determine current value of the toggle. As a result, each toggle at the form needs to have its own on-change handler which update exclusively its own state -> produces too much boiler-plate code