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

Fix label in radio element #3

Closed
wants to merge 3 commits into from

Conversation

mbbx6spp
Copy link
Contributor

When using labels in HTML forms, the label is "clickable" (i.e. when the label is clicked the form control associated with it behaves as if it has been clicked) when the for attribute in the label element corresponds to the id attribute of the form field element.

Previously the radio element's label in Nitrogen 2.x was not clickable because the radio button markup did not have an id set. These changes fix that.

Set the for attribute in label element to the id of the radio button
instead of the name of the radio button field.
@mbbx6spp
Copy link
Contributor Author

Realized there is event wiring issue with this patch. Closing and resubmitting new pull request to make labels for radio and checkboxes clickable without screwing up event wiring.

tex pushed a commit to tex/nitrogen_core that referenced this pull request Aug 9, 2012
choptastic pushed a commit that referenced this pull request Sep 26, 2018
This pull request was closed.
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.

1 participant