diff --git a/packages/builder/src/components/common/Modal/portal.js b/packages/builder/src/components/common/Modal/portal.js deleted file mode 100644 index a5070cad7d..0000000000 --- a/packages/builder/src/components/common/Modal/portal.js +++ /dev/null @@ -1,14 +0,0 @@ -export function portal(node, targetNodeOrSelector) { - const targetNode = - typeof targetNodeOrSelector == "string" - ? document.querySelector(targetNodeOrSelector) - : targetNodeOrSelector - const portalChildren = [...node.children] - targetNode.append(...portalChildren) - - return { - destroy() { - for (const portalChild of portalChildren) portalChild.remove() - }, - } -}