Skip to content

Conversation

@xuaveneg
Copy link
Contributor

When undefined is passed as the checked props of the input, this one is considered as uncontrolled, and an uncontrolled component sometimes cannot change its value via React, resulting in an input which changes cannot be controlled by focus. Passing '' instead of undefined fix this error.

When ```undefined``` is passed as the ```checked``` props of the input, this one is considered as uncontrolled, and an uncontrolled component sometimes cannot change its value via React, resulting in an input which changes cannot be controlled by focus. Passing ```''``` instead of ```undefined``` fix this error.
@Hartorn
Copy link
Contributor

Hartorn commented Dec 13, 2017

@xuaveneg Could you test with true false instead of checked undefined ?

@xuaveneg
Copy link
Contributor Author

Just tested, it works with true false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants