aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authordanheberden <danheberden@gmail.com>2010-11-21 16:54:56 -0800
committerdanheberden <danheberden@gmail.com>2010-11-21 16:54:56 -0800
commit3e6e3c5eb82c1dcb6fe2d2555db63b5861d219ab (patch)
tree6b1aa462ffe5c044df35571d9f4c6c38a0a6ed56 /src/event.js
parent0838bdf52cf9f27ebc2bbee74fd7170e2d854c11 (diff)
downloadjquery-3e6e3c5eb82c1dcb6fe2d2555db63b5861d219ab.tar.gz
jquery-3e6e3c5eb82c1dcb6fe2d2555db63b5861d219ab.zip
Fix for #6911 - prevent disabled elements in liveHandler
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index 3cfc81759..58a695373 100644
--- a/src/event.js
+++ b/src/event.js
@@ -1075,8 +1075,8 @@ function liveHandler( event ) {
events = events.events;
}
- // Make sure we avoid non-left-click bubbling in Firefox (#3861)
- if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
+ // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)
+ if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
return;
}