Installed some nugets

This commit is contained in:
2020-04-23 23:34:24 +02:00
parent d930e505b6
commit 14b47b087d
137 changed files with 41620 additions and 10350 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;
}