Merge pull request #1992 from Truimo/dev

fix for #1940: check if there is no parent element
This commit is contained in:
Mike Cao authored and GitHub committed 2023-04-25 12:36:26 -07:00
commit c3beb10e3b
1 file changed
+3
+3
View File
@@ -119,6 +119,9 @@
return currentElement;
}
currentElement = currentElement.parentElement;
if (currentElement === null) {
return null;
}
}
return null;
};