We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 130907c commit 348cb42Copy full SHA for 348cb42
src/lib/core/overlay/overlay-ref.ts
@@ -38,7 +38,10 @@ export class OverlayRef implements PortalHost {
38
}
39
40
dispose(): void {
41
- this._state.positionStrategy.dispose();
+ if (this._state.positionStrategy) {
42
+ this._state.positionStrategy.dispose();
43
+ }
44
+
45
this._detachBackdrop();
46
this._portalHost.dispose();
47
src/lib/core/overlay/overlay.spec.ts
@@ -251,5 +251,6 @@ class FakePositionStrategy implements PositionStrategy {
251
return Promise.resolve();
252
253
254
+ dispose() {}
255
256
0 commit comments