mirror of
https://github.com/jquery/jquery.git
synced 2026-02-08 06:35:05 -05:00
Don't run direct handlers if delegate did .stopPropagation().
This commit is contained in:
@@ -459,7 +459,7 @@ jQuery.event = {
|
||||
delete event.delegateTarget;
|
||||
|
||||
// Run non-delegated handlers for this level
|
||||
if ( handlers.length ) {
|
||||
if ( handlers.length && !event.isPropagationStopped() ) {
|
||||
dispatch( this, event, handlers, args );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user