Skip to content

Commit

Permalink
fix(ngScenario): Restrict radio/checkbox check switch in IE<9
Browse files Browse the repository at this point in the history
Only flip the element `checked` value when triggering `click` events
in IE8 and lower.
  • Loading branch information
lrlopez committed Mar 7, 2014
1 parent 1f9d730 commit cf8c463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngScenario/browserTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}

if (msie < 9) {
if (inputType == 'radio' || inputType == 'checkbox') {
if ((inputType == 'radio' || inputType == 'checkbox') && (eventType == 'click')) {
element.checked = !element.checked;
}

Expand Down

1 comment on commit cf8c463

@petebacondarwin
Copy link

Choose a reason for hiding this comment

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

It is probably not a huge issue to worry about this commit since 1.3 is dropping IE8 support

Please sign in to comment.