We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e59359 commit 51b95b8Copy full SHA for 51b95b8
src/index.tsx
@@ -199,7 +199,7 @@ class OutPortal<C extends Component<any>> extends React.PureComponent<OutPortalP
199
200
// If we're switching portal nodes, we need to clean up the current one first.
201
if (this.currentPortalNode && node !== this.currentPortalNode) {
202
- this.currentPortalNode.unmount();
+ this.currentPortalNode.unmount(this.placeholderNode.current!);
203
this.currentPortalNode = node;
204
}
205
0 commit comments