Skip to content

Commit 7bf3f91

Browse files
committed
chore: avoid memory leak
1 parent 60f79a9 commit 7bf3f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/overlay/overlay-ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class OverlayRef implements PortalHost {
6565
// Update the position once the zone is stable so that the overlay will be fully rendered
6666
// before attempting to position it, as the position may depend on the size of the rendered
6767
// content.
68-
first.call(this._ngZone.onStable).subscribe(() => {
68+
first.call(this._ngZone.onStable.asObservable()).subscribe(() => {
6969
this.updatePosition();
7070
});
7171

0 commit comments

Comments
 (0)