Fix for #6911 - prevent disabled elements in liveHandler

This commit is contained in:
danheberden 2010-11-21 16:54:56 -08:00
parent 0838bdf52c
commit 3e6e3c5eb8

View file

@ -1075,8 +1075,8 @@ function liveHandler( event ) {
events = events.events; events = events.events;
} }
// Make sure we avoid non-left-click bubbling in Firefox (#3861) // 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.button && event.type === "click" ) { if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
return; return;
} }