ASP_MVC webClient tillagd

This commit is contained in:
2020-04-22 23:34:46 +02:00
parent f7d8e2a049
commit ffa3652cc8
152 changed files with 69100 additions and 5 deletions

View File

@ -0,0 +1,14 @@
/**
* Finds the root node (document, shadowDOM root) of the given element
* @method
* @memberof Popper.Utils
* @argument {Element} node
* @returns {Element} root node
*/
export default function getRoot(node) {
if (node.parentNode !== null) {
return getRoot(node.parentNode);
}
return node;
}