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

checked={true},Cannot deselect #83

Open
YNameUndefined opened this issue Sep 4, 2018 · 2 comments
Open

checked={true},Cannot deselect #83

YNameUndefined opened this issue Sep 4, 2018 · 2 comments

Comments

@YNameUndefined
Copy link

When I use “checked={true}”,Selected by default,Cannot deselect, cannot operate。 I need to do it in some other way.
Thanks

@kkarandikar0807
Copy link

same issue

@pentolbakso
Copy link

I believe you should do something like this .. we toggle checkbox state on OnChange.

<CheckBox label="My Label" onChange={checked => this.setState({ myState: !checked })} checked={this.state.myState} />

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

No branches or pull requests

3 participants