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

Use label's 'for' attribute rather than prev() when building t3onoff #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cheesegrits
Copy link

@cheesegrits cheesegrits commented Dec 19, 2017

As-is, the code breaks any on/off radio fieldset that doesn't have the input before the label. This change uses the 'for' attribute of the label to find the input, rather than relying on the DOM structure using prev().

Note that the existing code already does this in the listener on line 36, so already assumes there is a 'for' property.

@cheesegrits
Copy link
Author

PS ... if I'm supposed to raise PR's against a different branch, just let me know, I'll redo the PR.

@britzke
Copy link

britzke commented Dec 17, 2021

Is there still a chance to get this PR merged. It is waiting several years and every time we get an update we have to patch this manually for this to work with the Fabrik Framework.

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.

2 participants