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 Aug 15, 2013
1 parent 186c3d8 commit 6e17be1
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 @@ -62,7 +62,7 @@
}

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

Expand Down

0 comments on commit 6e17be1

Please sign in to comment.