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

Update checked for radio buttons without group. #1880

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brunnerh
Copy link
Contributor

@brunnerh brunnerh commented Jan 3, 2024

Also make radio button group name a required property (can change this again, if there is a good reason not to do this).

Unfortunately the change event does only fire for the newly selected radio button, not for the ones that are automatically unselected; this is why I used document.getElementsByName to find the associated ones.

Fixes #1879.

Make radio button group `name` a required property.
@brunnerh
Copy link
Contributor Author

brunnerh commented Jan 3, 2024

Also make radio button group name a required property (can change this again, if there is a good reason not to do this).

The skeleton UIs might be a good reason 🤔.

<RadioButtonGroup legendText="Storage tier (disk)" name="skeleton">
  <RadioButtonSkeleton />
  <RadioButtonSkeleton />
  <RadioButtonSkeleton />
</RadioButtonGroup>

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.

RadioButton checked doesn't change
1 participant