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

Renderer.checkbox uses the checked keyword param #12

Closed
wants to merge 1 commit into from

Conversation

kstark
Copy link

@kstark kstark commented Feb 24, 2014

Right now, Renderer.checkbox("name", checked=True) will ignore the checked keyword param and always pass False to the tags.checkbox method, even if there is no value available for "name". This change allows users to request the renderer to default checked to True, while still reflecting changes when data is available.

This behavior (allowing a renderer default) matches that of several existing methods, including textarea, text, and password.

Right now, Renderer.checkbox("name", checked=True) will ignore the checked keyword param and always pass False to the tags.checkbox method, even if there is no value available for "name". This change allows users to request the renderer to default checked to True, while still reflecting changes when data is available.

This behavior (allowing a renderer default) matches that of several existing methods, including textarea, text, and password.
@kstark
Copy link
Author

kstark commented Feb 24, 2014

I believe this is also the problem referenced in issue #3.

@ChristopheBelpaire
Copy link

+1 !

@WuShell
Copy link
Contributor

WuShell commented Jun 17, 2014

Ups, just found out this PR, after submitting #17 (sorry!). Maybe you can still get some use for the tests I've added there.

@lambacck
Copy link
Contributor

Thank you for the pull request. I merged #17 which included tests but has the same effect as this PR.

@lambacck lambacck closed this May 17, 2015
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.

4 participants