mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
Merge pull request #1992 from Truimo/dev
fix for #1940: check if there is no parent element
This commit is contained in:
commit
c3beb10e3b
|
@ -119,6 +119,9 @@
|
|||
return currentElement;
|
||||
}
|
||||
currentElement = currentElement.parentElement;
|
||||
if (currentElement === null) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user