mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix #13993. Save result of native inline handlers. Close gh-1368.
This commit is contained in:
@@ -312,8 +312,11 @@ jQuery.event = {
|
||||
|
||||
// Native handler
|
||||
handle = ontype && cur[ ontype ];
|
||||
if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {
|
||||
event.preventDefault();
|
||||
if ( handle && handle.apply && jQuery.acceptData( cur ) ) {
|
||||
event.result = handle.apply( cur, data );
|
||||
if ( event.result === false ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
event.type = type;
|
||||
|
||||
Reference in New Issue
Block a user