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

disabled checkbox should not have unchecked value #33

Merged
merged 2 commits into from Feb 4, 2015

Conversation

skarr
Copy link
Contributor

@skarr skarr commented Feb 3, 2015

Disabled elements should not be serialised. The selector for checkbox unchecked values was missing a disabled exclusion. This change prevents disabled checkboxes with default unchecked values from being serialized.

@marioizquierdo
Copy link
Owner

Looks good.
Please add a test for this case and I will create a new release with it.

@skarr
Copy link
Contributor Author

skarr commented Feb 4, 2015

Sorry missed the contribution paragraph yesterday. I added a single test for both normal disabled checkbox and disabled checkbox with data-unchecked-value="NOPE" attribute.

@marioizquierdo
Copy link
Owner

Nice. I'm merging it and creating the new release with it.
Thanks @skarr

marioizquierdo added a commit that referenced this pull request Feb 4, 2015
disabled checkbox should not have unchecked value
@marioizquierdo marioizquierdo merged commit 8128e1b into marioizquierdo:master Feb 4, 2015
@skarr skarr deleted the patch-1 branch February 9, 2015 13:16
@marioizquierdo
Copy link
Owner

Ups, I didn't realize but this change breaks compatibility with Zepto, because Zepto doesn't support the :not selector with multiple values. I fixed it in this commit ae72bc3

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.

None yet

2 participants