mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
297760f3cc
commit
ab5e3c8d3b
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user