Skip to content

Commit

Permalink
fix(module:drawer): ngOnDestory may called before onInit (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonny008 authored and hsuanxyz committed Feb 25, 2019
1 parent bf72d26 commit 9bf9299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/drawer/nz-drawer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ export class NzDrawerComponent<T = any, R = any, D = any> extends NzDrawerRef<R>
}

private disposeOverlay(): void {
this.overlayRef.dispose();
if (this.overlayRef) {
this.overlayRef.dispose();
}
this.overlayRef = null;
}

Expand Down

0 comments on commit 9bf9299

Please sign in to comment.