Skip to content

Comments

disabled checkbox should not have unchecked value#33

Merged
marioizquierdo merged 2 commits intomarioizquierdo:masterfrom
skarr:patch-1
Feb 4, 2015
Merged

disabled checkbox should not have unchecked value#33
marioizquierdo merged 2 commits intomarioizquierdo:masterfrom
skarr:patch-1

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.

2 participants