Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no generic way of handling toggle change event #26

Open
vicmosin opened this issue Oct 20, 2019 · 0 comments
Open

There is no generic way of handling toggle change event #26

vicmosin opened this issue Oct 20, 2019 · 0 comments

Comments

@vicmosin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant