Skip to content

Commit

Permalink
fix(module:tooltip): fix tooltip not render after set (NG-ZORRO#3091)
Browse files Browse the repository at this point in the history
* fix(module:tooltip): fix tooltip not render after set

* fix: remove extra markForCheck
  • Loading branch information
Wendell authored and Ricbet committed Apr 9, 2020
1 parent 24aa994 commit d628381
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 154 deletions.
2 changes: 2 additions & 0 deletions components/tooltip/nz-tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ export class NzTooltipDirective implements AfterViewInit, OnChanges, OnInit, OnD
this.nzTitle = changes.setTitle.currentValue;
this.updateCompValue('nzTitle', changes.setTitle.currentValue);
}

this.tooltip.cdr.markForCheck(); // Manually trigger change detection of component.
}
}
}
Loading

0 comments on commit d628381

Please sign in to comment.