-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix: Checkbox component to work well with useForm #211
Conversation
@@ -65,8 +70,8 @@ export const Checkbox = ({ | |||
id={inputId} | |||
type="checkbox" | |||
name={name} | |||
defaultValue={value} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a valid attribute for a checkbox.
@@ -65,8 +70,8 @@ export const RadioButton = ({ | |||
id={inputId} | |||
type="radio" | |||
name={name} | |||
defaultValue={value} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a valid attribute for a radio.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only thing I noticed was 14 failed tests, but I'm sure you're aware of those, none had to do with these changes.
Looks good!
Where do you see failed tests? I don't see any in the test run here: https://github.com/MetroStar/comet/actions/runs/10146635791/job/28055157858?pr=211 When I run tests locally. |
Hmmm....I'm not seeing that. And the automated tests look good. So i'm gonna say its working :D |
Update USWDS Checkbox and Radio Button components to properly apply a default value when specified.
Description
Related Issue
#209
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):