-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Checkbox] Warning: either controlled or uncontrolled #4413
Comments
@wzup what is the starting value of |
Same here. <Checkbox
label="Editable"
checked={this.props.editable}
onCheck={this.props.toggleEditable}
/> I update the editable prop from the parent component. Everything works as expected though |
@teknologist What value are you providing at the initial render? |
We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it. |
I use Checkbox with
checked
prop. I do not have anydefaultChecked
props set on the component. Why do I see this warning? When I comment outchecked
prop no warnings are throws. How to get rid of it? I need to usechecked
prop.My component.
The text was updated successfully, but these errors were encountered: