Skip to content

Commit 93bdd11

Browse files
authored
refactor(cdk/overlay): insert point-connected overlays in container (#32358)
Uses the overlay container to insert overlays connected to a point, rather than putting them at the end of the `body`.
1 parent 9cf1501 commit 93bdd11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/overlay/position/flexible-connected-position-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export class FlexibleConnectedPositionStrategy implements PositionStrategy {
542542
} else if (origin instanceof Element) {
543543
return origin;
544544
}
545-
return document.body.lastChild as Element;
545+
return null;
546546
}
547547

548548
/**

0 commit comments

Comments
 (0)