Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
I was still getting change detector error on tooltips after commit 413c2f1 .
This change solved it for me, and as a bonus no timeout hack needed.
  • Loading branch information
MonkeyDo committed Apr 1, 2016
1 parent 232b8ae commit 8df4e69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/tooltip/tooltip-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export class TooltipContainer implements AfterViewInit {
if (this.animation) {
this.classMap.fade = true;
}
// fix: why time out is really needed here?
setTimeout(() => this.cdr.markForCheck());
this.cdr.detectChanges();
}
}

0 comments on commit 8df4e69

Please sign in to comment.