mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
If an inline handler returns false, call event.preventDefault(). Fixes #6337.
This commit is contained in:
parent
c4e653237f
commit
adff8e45e2
@ -331,6 +331,7 @@ jQuery.event = {
|
||||
if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
|
||||
if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
|
||||
event.result = false;
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user