-
Notifications
You must be signed in to change notification settings - Fork 10
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
UX-286 Add indeterminate checkbox support #578
Conversation
Codecov Report
@@ Coverage Diff @@
## main #578 +/- ##
==========================================
+ Coverage 93.39% 93.66% +0.26%
==========================================
Files 118 138 +20
Lines 1574 1783 +209
==========================================
+ Hits 1470 1670 +200
- Misses 104 113 +9
Continue to review full report at Codecov.
|
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.
Looks good, just one question
/** | ||
* 'indeterminate' does not work with defaultChecked | ||
*/ | ||
defaultChecked: PropTypes.oneOf([true, false]), |
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.
Any reason to do this instead of PropTypes.bool?
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.
Oh good catch haha
What Changed
indeterminate
checked statedefaultChecked
prop doesn't work with intermediate, input must be fully controlledHow To Test or Verify
PR Checklist
type
label