shards-react icon indicating copy to clipboard operation
shards-react copied to clipboard

There is no generic way of handling toggle change event

Open vicmosin opened this issue 5 years ago • 0 comments

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

vicmosin avatar Oct 20 '19 05:10 vicmosin