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

Radio Button initial checked state not consistently applied #71

Open
sswinford-dcc opened this issue Aug 29, 2024 · 0 comments
Open

Radio Button initial checked state not consistently applied #71

sswinford-dcc opened this issue Aug 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sswinford-dcc
Copy link

Describe the bug

Radio Buttons are not consistently receiving the "checked" attribute on render when the value of the Radio Button is the same as the value for the Radio Group.

To Reproduce

Steps to reproduce the behavior:

  1. Add code block for radio group with radio buttons.
  2. Add a "value" to the radio group that corresponds with a button's "value".
  3. Load the page with the radio group component.

Demo

https://codepen.io/StephanJS/pen/yLdqwKE

Screenshots

bug-radiobutton-codepen

Browser / OS

  • OS: Windows 11
  • Browser: Edge
  • Browser version: 128.0.2739.42
  • Screen Reader: N/A

Additional information

Radio Buttons consistently load correctly on the WA documentation page, however on CodePen or my own webpages it very rarely works correctly. It seems to work initially, but then it will stop working consistently (maybe 1 in 20 times it will load correctly).

Regular radios do not seem to be affected by this bug and work as expected.

@sswinford-dcc sswinford-dcc added the bug Something isn't working label Aug 29, 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
None yet
Development

No branches or pull requests

2 participants