Skip to content

Commit

Permalink
fix(module:auto-complete): memory leak (#7112)
Browse files Browse the repository at this point in the history
  • Loading branch information
diyews committed Jan 13, 2022
1 parent 3664efe commit 3806250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/auto-complete/autocomplete-trigger.directive.ts
Expand Up @@ -111,6 +111,8 @@ export class NzAutocompleteTriggerDirective implements AfterViewInit, ControlVal
}

ngOnDestroy(): void {
this.destroy$.next();
this.destroy$.complete();
this.destroyPanel();
}

Expand Down

0 comments on commit 3806250

Please sign in to comment.