-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Description
Steps
- Using the preact-cli, build a basic project.
npm install --save semantic-ui-react- Add a simple form with a checkbox element anywhere in the project.
Sample code:
<Form>
<Form.Checkbox label='Why the errors?'/>
</Form>
- The following errors show up in the console log.
Checkbox is missing "defaultChecked" propTypes validation for auto controlled prop "checked".Checkbox is missing propTypes validation for auto controlled prop "checked".Checkbox is missing "defaultIndeterminate" propTypes validation for auto controlled prop "indeterminate".Checkbox is missing propTypes validation for auto controlled prop "indeterminate".
Expected Result
No errors are emitted.
Actual Result
4 errors are emitted.
Version
0.71.1
Testcase
Repository is pretty barebones, but had to make a separate project in order to demonstrate the issue.
https://github.com/rbscott/auto-controlled-error
Notes
I am not sure if Preact is official supported, but it seems to mostly work. If someone points me in the right direction, I could put together a Pull Request.