Skip to content

Click on checkbox/radio should change state #21

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

Closed
wants to merge 1 commit into from
Closed

Click on checkbox/radio should change state #21

wants to merge 1 commit into from

Conversation

larslaade
Copy link

fixed changing state after click on checkbox/radio elements.
added two tests.

@@ -203,6 +203,8 @@ $.extend( $.simulate.prototype, {
dispatchEvent: function( elem, type, event ) {
if ( elem.dispatchEvent ) {
elem.dispatchEvent( event );
} else if ( elem[type] ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be the first conditional?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing: elem[ type ]

@scottgonzalez
Copy link
Member

Please sign the CLA

@larslaade
Copy link
Author

Thanks for review. I fixed all notes and signed the CLA.

@jzaefferer
Copy link
Member

Looks good to me. @scottgonzalez want to take another look?

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.

3 participants