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 checked property doesn't seems to work #221

Open
vincentwongso opened this issue Jun 29, 2017 · 3 comments
Open

Checkbox checked property doesn't seems to work #221

vincentwongso opened this issue Jun 29, 2017 · 3 comments

Comments

@vincentwongso
Copy link

<FormsyCheckbox
                name="test"
                label="test"
                style={style.checkboxStyle}
                checked="true"
              />

The checkbox supposed to be checked but it's not.

@SkyLeite
Copy link

SkyLeite commented Jul 3, 2017

Yeah, same issue with Radio buttons. They stopped working entirely randomly.

@vincentwongso
Copy link
Author

I get it to work by:
instead of using checked="true", I use value={true}

@ryanblakeley
Copy link
Collaborator

I think this is expected since we normalize the API to use a value prop. Might be a good idea though to patch it so that a checked prop sets the value to true.

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