Merge pull request #1992 from Truimo/dev

fix for #1940: check if there is no parent element
This commit is contained in:
Mike Cao 2023-04-25 12:36:26 -07:00 committed by GitHub
commit c3beb10e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,9 @@
return currentElement;
}
currentElement = currentElement.parentElement;
if (currentElement === null) {
return null;
}
}
return null;
};