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

Boolean checkboxes checked state not reflecting value if value is a true boolean #44

Closed
caseylutz opened this issue Dec 10, 2013 · 1 comment

Comments

@caseylutz
Copy link

I was having some issues with {{autoForm}} populating the correct value on checkboxes in 0.4.3. The problem appeared to be my object's value being true rather than "true".

The following change in autoform-client.js fixed it. Line 945:

value = (value === "true" || value === true) ? true : false;

Of course there may very well be darn good reasons not to do that, so I will respectfully defer to the author.

@aldeed
Copy link
Collaborator

aldeed commented Dec 10, 2013

Thanks, I'll put out a fix later today.

@aldeed aldeed closed this as completed in 90f8d12 Dec 10, 2013
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