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

Fix checkbox support. Use "checked" instead of "default-checked" #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bauerpauer
Copy link
Contributor

I totally forgot to commit/push this and contribute back! Using :default-checked wasn't correct - :checked should be used to ensure that changes to the form atom are reflected in the form element, just as you use :value instead of :default-value for other inputs.

Any chance you can merge this and publish as v0.6.1?

free-form controls these inputs, so we ought to be using "checked"
instead of "default-checked".

See
https://facebook.github.io/react/docs/forms.html#controlled-components
and https://facebook.github.io/react/docs/uncontrolled-components.html
for info regarding Controlled vs Un-controlled components.
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.

1 participant