mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
The triggered flag was being set too early, which was preventing bubbling form working when a
native event existed.
This commit is contained in:
parent
ebd9205fdb
commit
69e86d4f98
@ -229,13 +229,13 @@ jQuery.event = {
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
this.triggered = false;
|
||||
|
||||
if ( !event.isPropagationStopped() ) {
|
||||
var parent = elem.parentNode || elem.ownerDocument;
|
||||
if ( parent )
|
||||
jQuery.event.trigger(event, data, parent, true);
|
||||
}
|
||||
|
||||
this.triggered = false;
|
||||
},
|
||||
|
||||
handle: function(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user