mirror of
https://github.com/jquery/jquery.git
synced 2026-02-13 05:45:28 -05:00
Make sure non-left-click events don't bubble. Fixes #3861.
This commit is contained in:
@@ -864,6 +864,11 @@ function liveHandler( event ) {
|
||||
related, match, fn, elem, j, i, l, data,
|
||||
live = jQuery.extend({}, jQuery.data( this, "events" ).live);
|
||||
|
||||
// Make sure we avoid non-left-click bubbling in Firefox (#3861)
|
||||
if ( event.button && event.type === "click" ) {
|
||||
return;
|
||||
}
|
||||
|
||||
for ( j in live ) {
|
||||
fn = live[j];
|
||||
if ( fn.live === event.type ||
|
||||
|
||||
Reference in New Issue
Block a user