| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PatternFly-React preview: https://patternfly-react-pr-2292.surge.sh |
Sorry, something went wrong.
| disabled={isDisabled} | ||
| checked={checked || isChecked} | ||
| defaultChecked={isChecked ? undefined : defaultChecked} | ||
| {...!isChecked && { defaultChecked }} |
There was a problem hiding this comment.
defaultChecked is an attribute passed to input? what does it do?
Sorry, something went wrong.
There was a problem hiding this comment.
I think it's required for the uncontrolled version of radio. The undefined was throwing a console error.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What: Fixes warning re: controlled/uncontrolled switch. Also fixes warning for missing prop on uncontrolled radio.
Refer to issue: #2028