From 10298b50ba24fa4a7edcceb8bd9687c65d729601 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 9 Jan 2026 09:19:14 +0100 Subject: [PATCH] refactor(cdk/overlay): revert internal workaround again Once again reverts the internal workaround, now that the internal codebase has had a chance to settle. --- src/cdk/overlay/overlay.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/cdk/overlay/overlay.ts b/src/cdk/overlay/overlay.ts index 18c016236c2a..ef13c0013395 100644 --- a/src/cdk/overlay/overlay.ts +++ b/src/cdk/overlay/overlay.ts @@ -89,15 +89,12 @@ export function createOverlayRef(injector: Injector, config?: OverlayConfig): Ov ? overlayConfig.positionStrategy?.getPopoverInsertionPoint?.() : null; - // Note: this is redundant since the host will be moved into its final location immediately - // after. We're keeping it as a temporary workaround, because an internal team depends on - // this behavior. We can roll this back after January 5th 2026. - overlayContainer.getContainerElement().appendChild(host); - if (isElement(customInsertionPoint)) { customInsertionPoint.after(host); } else if (customInsertionPoint?.type === 'parent') { customInsertionPoint.element.appendChild(host); + } else { + overlayContainer.getContainerElement().appendChild(host); } return new OverlayRef(