shards-react
shards-react copied to clipboard
There is no generic way of handling toggle change event
Checkbox in toggle mode sends its label element as event.target
to 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