Skip to content

Commit 02542de

Browse files
authored
refactor(cdk/overlay): revert internal workaround again (#32626)
Once again reverts the internal workaround, now that the internal codebase has had a chance to settle.
1 parent 8875da1 commit 02542de

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/cdk/overlay/overlay.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,12 @@ export function createOverlayRef(injector: Injector, config?: OverlayConfig): Ov
8989
? overlayConfig.positionStrategy?.getPopoverInsertionPoint?.()
9090
: null;
9191

92-
// Note: this is redundant since the host will be moved into its final location immediately
93-
// after. We're keeping it as a temporary workaround, because an internal team depends on
94-
// this behavior. We can roll this back after January 5th 2026.
95-
overlayContainer.getContainerElement().appendChild(host);
96-
9792
if (isElement(customInsertionPoint)) {
9893
customInsertionPoint.after(host);
9994
} else if (customInsertionPoint?.type === 'parent') {
10095
customInsertionPoint.element.appendChild(host);
96+
} else {
97+
overlayContainer.getContainerElement().appendChild(host);
10198
}
10299

103100
return new OverlayRef(

0 commit comments

Comments
 (0)