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

[Checkbox] add tagName prop #2708

Merged
merged 1 commit into from
Jul 23, 2018
Merged

[Checkbox] add tagName prop #2708

merged 1 commit into from
Jul 23, 2018

Conversation

giladgray
Copy link
Contributor

  • add tagName prop so you can have a checkbox not wrapped in a <label>, which causes event problems when you listen for click on a parent element.
    • obnoxious DOM side effect: pretty sure this is because clicking a label around an input also clicks the input and ends up triggering a whole bunch of events.
    • set tagName="div" to render a beautiful checkbox that can be clicked directly (but not the text)

@giladgray giladgray merged commit ae247ab into develop Jul 23, 2018
@giladgray giladgray deleted the gg/checkbox branch July 23, 2018 16:09
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

Successfully merging this pull request may close these issues.

3 participants