mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix #13180: don't delegate into SVG <use>
This commit is contained in:
parent
7812aab1c9
commit
f860e0bd2f
@ -405,8 +405,9 @@ jQuery.event = {
|
||||
cur = event.target;
|
||||
|
||||
// Find delegate handlers
|
||||
// Black-hole SVG <use> instance trees (#13180)
|
||||
// Avoid non-left-click bubbling in Firefox (#3861)
|
||||
if ( delegateCount && (!event.button || event.type !== "click") ) {
|
||||
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
|
||||
|
||||
for ( ; cur != this; cur = cur.parentNode || this ) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user