-
Notifications
You must be signed in to change notification settings - Fork 16
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: ui.radio value defaulting #818
Conversation
Investigating failures |
return ( | ||
<DHRadio | ||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
{...props} | ||
value={value as string} |
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.
You need to pass children
down to DHRadio
as well, as you've pulled it out of props
. That's why your e2e tests are failing.
Run the script from the ticket and you'll see the issue.
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.
You shouldn't need as string
, value
is already a string by this point.
return ( | ||
<DHRadio | ||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
{...props} | ||
value={value as string} |
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.
You shouldn't need as string
, value
is already a string by this point.
@AkshatJawne to fix the tests I think you just need to merge in the latest |
@mofojed Appears that merging main did not change it, will investigate further |
Closes #765