mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
config redirect
This commit is contained in:
+14
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user