fix(sidenav): some internal subjects not being completed (#15567)

Fixes a couple of internal subjects not being completed in MatDrawer and MatDrawerContainer.
This commit is contained in:
Kristiyan Kostadinov
2019-03-28 18:18:28 +01:00
committed by Jeremy Elbourn
parent 297760f3cc
commit ab5e3c8d3b
+2
View File
@@ -345,6 +345,7 @@ export class MatDrawer implements AfterContentInit, AfterContentChecked, OnDestr
this._animationStarted.complete();
this._animationEnd.complete();
this._modeChanged.complete();
this._destroyed.next();
this._destroyed.complete();
}
@@ -561,6 +562,7 @@ export class MatDrawerContainer implements AfterContentInit, DoCheck, OnDestroy
}
ngOnDestroy() {
this._contentMarginChanges.complete();
this._doCheckSubject.complete();
this._destroyed.next();
this._destroyed.complete();