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

Form validation for required radio buttons is broken #2417

Open
m-akinc opened this issue Sep 30, 2024 · 0 comments
Open

Form validation for required radio buttons is broken #2417

m-akinc opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@m-akinc
Copy link
Contributor

m-akinc commented Sep 30, 2024

🐛 Bug Report

  1. required on a radio button does not take other buttons in the group into account. It will result in a validation error if that specific radio is unchecked. Instead, it should only report a validation error if none of the radio buttons in the radio button group are checked.

  2. Validity is only updated when the value or checked state changes, so if a radio button with required is initially unchecked and remains unchecked, it will remain marked valid, even though it violates the required constraint.

Note that the expected behavior of required radio buttons is that required specified on any radio button applies to the group of buttons as a whole.

@m-akinc m-akinc added bug Something isn't working triage New issue that needs to be reviewed labels Sep 30, 2024
@m-akinc m-akinc removed the triage New issue that needs to be reviewed label Oct 1, 2024
@m-akinc m-akinc moved this to Defined/Ready to Pickup in Nimble Design System Priorities Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Defined/Ready to Pickup
Development

No branches or pull requests

1 participant