mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix #11145: Harden dispatch against a form-aliased "disabled" property
This commit is contained in:
committed by
Dave Methvin
parent
b6a2dfbeb9
commit
77de76b942
@@ -399,7 +399,7 @@ jQuery.event = {
|
||||
|
||||
// Determine handlers that should run if there are delegated events
|
||||
// Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
|
||||
if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
|
||||
if ( delegateCount && event.target.disabled !== true && !(event.button && event.type === "click") ) {
|
||||
|
||||
// Pregenerate a single jQuery object for reuse with .is()
|
||||
jqcur = jQuery(this);
|
||||
|
||||
Reference in New Issue
Block a user