Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/cdk/overlay/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,15 @@ 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 {
// Note: leave the container for last so that we fall
// back to it for unsupported/newly-added values.
overlayContainer.getContainerElement().appendChild(host);
}

return new OverlayRef(
Expand Down
Loading