Skip to content

Commit

Permalink
Delete tooltip when destroying
Browse files Browse the repository at this point in the history
  • Loading branch information
drozhzhin-n-e committed Sep 22, 2018
1 parent abb1fdf commit 5807d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ export class TooltipDirective {
}

ngOnDestroy():void {
this.destroyTooltip({fast: true});

if (this.componentSubscribe){
this.componentSubscribe.unsubscribe();
}

this.destroyTooltip({fast: true});
}

getElementPosition():void {
Expand Down

0 comments on commit 5807d63

Please sign in to comment.