If an inline handler returns false, call event.preventDefault(). Fixes #6337.
This commit is contained in:
parent
c4e653237f
commit
adff8e45e2
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue