From bd474799bf95f4ecdc47a7577750eaf69e2236d4 Mon Sep 17 00:00:00 2001 From: danheberden Date: Mon, 25 Oct 2010 14:07:44 -0700 Subject: [PATCH] Prevent IE from firing live/delegate events on disabled elements. (#6911) --- src/event.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/event.js b/src/event.js index 959e89c5e..cf3ec2ac7 100644 --- a/src/event.js +++ b/src/event.js @@ -1068,6 +1068,11 @@ function liveHandler( event ) { if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) { return; } + + // IE will still dispatch events on disabled elements, so halt it (#6911) + if( event.target.disabled ) { + return; + } if ( event.namespace ) { namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)"); -- 2.39.5