Skip to content

Commit

Permalink
fix(module:cdk): resolve leak (#7139)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturovt authored Jan 17, 2022
1 parent 6835544 commit 2a93d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/cdk/overflow/overflow-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export class NzOverflowContainerComponent implements OnInit, AfterContentInit, O
}
ngAfterContentInit(): void {
this.overflowItems?.changes.pipe(startWith(this.overflowItems)).subscribe(this.overflowItems$);
this.overflowSuffix?.suffixWidth$.subscribe(this.suffixWidth$);
this.overflowRest?.restWidth$.subscribe(this.restWidth$);
this.overflowSuffix?.suffixWidth$.pipe(takeUntil(this.destroy$)).subscribe(this.suffixWidth$);
this.overflowRest?.restWidth$.pipe(takeUntil(this.destroy$)).subscribe(this.restWidth$);
this.contentInit$.next();
}
ngOnDestroy(): void {
Expand Down

0 comments on commit 2a93d05

Please sign in to comment.