-
Notifications
You must be signed in to change notification settings - Fork 296
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
Radio buttons don't get disabled and can't be selected clicking the label when they contain the required rule #536
Comments
Additional issue when adding the required rule to a radio button is that the label for the button isn't clickable. (Does work without the required rule) |
How do you make the radio button field? Where/how do you call |
I call
I have this in my form class ->
And my view ->
As soon as I remove the required rule in the form class, the radio button gets disabled and labels are clickable. |
You should add fields with
|
Nope. You're right. I didn't read good. Adding the I think the problem comes from the rules-to-html5-attributes logic. The problem might go away if you disable
Not really a solution, but kinda..? |
When disabling |
What do you use then if you have to display radio buttons? |
I created custom But this is a bug and it shouldn't exist, so PR very welcome. It's a tricky one, because sometimes you want attributes to copy to children, and sometimes not, soo.... |
@rudiedirkx pershaps you could share your classes as gists? |
When a radio button has the 'required' rule, it doesn't get disabled when calling 'disableFields()'
The text was updated successfully, but these errors were encountered: