You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Checkbox with checked prop. I do not have any defaultChecked props set on the component. Why do I see this warning? When I comment out checked prop no warnings are throws. How to get rid of it? I need to use checked prop.
@teknologist What value are you providing at the initial render?
oliviertassinari
changed the title
[Checkbox] Warning: Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both)
[Checkbox] Warning: either controlled or uncontrolled
Feb 12, 2017
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.
Still, we will accept PR fixes until v1-beta takes over the master branch.
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: