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

onSelect only works for input #25

Open
eds123 opened this issue Jul 18, 2017 · 0 comments
Open

onSelect only works for input #25

eds123 opened this issue Jul 18, 2017 · 0 comments

Comments

@eds123
Copy link

eds123 commented Jul 18, 2017

Using the onSelect option only works for input click. If you click a label no function is triggered.

As a way around this I bound a click event separately to just the label.

It's worth noting because of the nature of labels and their "for" attribute, click events on the entire wrapping div cause the label to double (bubble) their calls. The only way around this for me is to separate the two as listed above.

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