@angular/cdk 21.1.0-next.4 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/_overlay-module-chunk.mjs +2 -1
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +2 -2
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/text-field.mjs +1 -1
- package/fesm2022/text-field.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
|
@@ -2082,11 +2082,12 @@ function createOverlayRef(injector, config) {
|
|
|
2082
2082
|
host.classList.add('cdk-overlay-popover');
|
|
2083
2083
|
}
|
|
2084
2084
|
const customInsertionPoint = overlayConfig.usePopover ? overlayConfig.positionStrategy?.getPopoverInsertionPoint?.() : null;
|
|
2085
|
-
overlayContainer.getContainerElement().appendChild(host);
|
|
2086
2085
|
if (isElement(customInsertionPoint)) {
|
|
2087
2086
|
customInsertionPoint.after(host);
|
|
2088
2087
|
} else if (customInsertionPoint?.type === 'parent') {
|
|
2089
2088
|
customInsertionPoint.element.appendChild(host);
|
|
2089
|
+
} else {
|
|
2090
|
+
overlayContainer.getContainerElement().appendChild(host);
|
|
2090
2091
|
}
|
|
2091
2092
|
return new OverlayRef(new DomPortalOutlet(pane, appRef, injector), host, pane, overlayConfig, injector.get(NgZone), injector.get(OverlayKeyboardDispatcher), doc, injector.get(Location), injector.get(OverlayOutsideClickDispatcher), config?.disableAnimations ?? injector.get(ANIMATION_MODULE_TYPE, null, {
|
|
2092
2093
|
optional: true
|