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

How can I make a checkbox to be checked by default? #30

Closed
algm opened this issue Sep 24, 2015 · 3 comments
Closed

How can I make a checkbox to be checked by default? #30

algm opened this issue Sep 24, 2015 · 3 comments

Comments

@algm
Copy link
Contributor

algm commented Sep 24, 2015

After some tests, I am unable to set a checkbox as checked by default. I am reading the code and I don't see any way the checkboxInput component can accomplish that.

Am I missing anything? Should I try to do it and send a PR?

Thanks!

@andrewhathaway
Copy link
Owner

Ah. Interesting.

Looking through the source and the single checkboxInput input type always sets the checked value to false, however a checkboxOptionsInput works as expected.

I'd suggest it'd be a good idea to fix this and PR it if possible!

Thanks!

@andrewhathaway
Copy link
Owner

It might be worth also fixing the default issue with the checkboxInput input type. Can you PR or shall I put it on my backlog?

@algm
Copy link
Contributor Author

algm commented Sep 30, 2015

I'll do it in the next few days don't worry ;)

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

2 participants