diff --git a/packages/x6-react-shape/src/view.ts b/packages/x6-react-shape/src/view.ts index 1b1dcdb507a..a0d82e2f486 100644 --- a/packages/x6-react-shape/src/view.ts +++ b/packages/x6-react-shape/src/view.ts @@ -32,7 +32,7 @@ export class ReactShapeView extends NodeView { if (container) { const elem = React.createElement(Wrap, { node, graph: this.graph }) if (Portal.isActive()) { - const portal = createPortal(elem, container) as ReactPortal + const portal = createPortal(elem, container, node.id) as ReactPortal Portal.connect(this.targetId(), portal) } else { this.root = createRoot(container)