From cf8c4635743af88a52ca7b3da97f5c1cbe8cf084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Ram=C3=B3n=20L=C3=B3pez?= Date: Wed, 22 May 2013 00:23:13 +0200 Subject: [PATCH] fix(ngScenario): Restrict radio/checkbox check switch in IE<9 Only flip the element `checked` value when triggering `click` events in IE8 and lower. --- src/ngScenario/browserTrigger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngScenario/browserTrigger.js b/src/ngScenario/browserTrigger.js index f74a04c15110..c44713fd33dd 100644 --- a/src/ngScenario/browserTrigger.js +++ b/src/ngScenario/browserTrigger.js @@ -65,7 +65,7 @@ } if (msie < 9) { - if (inputType == 'radio' || inputType == 'checkbox') { + if ((inputType == 'radio' || inputType == 'checkbox') && (eventType == 'click')) { element.checked = !element.checked; }