We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
null
undefined
@carbon/react
Chrome
v11.58.1
v1.58.1
When I pass a null child to a RadioButtonGroup, it crashes. This is because of this line:
const { value } = (radioButton as ReactElement)?.props ?? undefined;
which attempts to destructure undefined
https://stackblitz.com/edit/github-drap92?file=src%2FApp.jsx
<div> hi <RadioButtonGroup name="foo"> <RadioButton labelText="hey" /> {null} </RadioButtonGroup> </div>
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
No response
The text was updated successfully, but these errors were encountered:
fix: null child crashes RadioButtonGroup (carbon-design-system#16655)
abd9c50
fix: null child crashes RadioButtonGroup (#16655) (#16691)
929b3bb
Co-authored-by: Nikhil Tomar <[email protected]> Co-authored-by: Taylor Jones <[email protected]>
Successfully merging a pull request may close this issue.
Package
@carbon/react
Browser
Chrome
Package version
v11.58.1
React version
v1.58.1
Description
When I pass a null child to a RadioButtonGroup, it crashes. This is because of this line:
which attempts to destructure
undefined
Reproduction/example
https://stackblitz.com/edit/github-drap92?file=src%2FApp.jsx
Steps to reproduce
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: