Update popper packages

This commit is contained in:
Samuele E. Locatelli
2020-01-31 16:44:33 +01:00
parent cbb68b36a7
commit 4b8ed3219b
485 changed files with 20619 additions and 13310 deletions
+14
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;
}