Skip to content
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] Warnings with React v15 #3915

Closed
ffxsam opened this issue Apr 9, 2016 · 1 comment
Closed

[Checkbox] Warnings with React v15 #3915

ffxsam opened this issue Apr 9, 2016 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@ffxsam
Copy link
Contributor

ffxsam commented Apr 9, 2016

  • Material-UI: 0.15.0-alpha.2
  • React: 15.0.1
  • Browser: Chrome 49

I'm getting a second React warning, this time with Checkbox:

Warning: Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components

The line in question is:

<Checkbox checked={checked} onCheck={clickCheckbox} />

This was working totally fine in React 0.14.x.

@mbrookes mbrookes added the duplicate This issue or pull request already exists label Apr 9, 2016
@mbrookes
Copy link
Member

mbrookes commented Apr 9, 2016

Ref #3642

@mbrookes mbrookes closed this as completed Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants