We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef47b0 commit a2af5c9Copy full SHA for a2af5c9
packages/antd/src/__builtins__/portal.tsx
@@ -49,7 +49,8 @@ export function createPortalRoot<T extends React.ReactNode>(
49
function unmount() {
50
if (PortalMap.has(id)) {
51
PortalMap.set(id, null)
52
- } else if (host) {
+ }
53
+ if (host) {
54
ReactDOM.unmountComponentAtNode(host)
55
host.parentNode?.removeChild(host)
56
}
packages/next/src/__builtins__/portal.tsx
0 commit comments