Skip to content

Commit

Permalink
fix(module:tooltip): fix position change not set back (#3857)
Browse files Browse the repository at this point in the history
* fix(module:tooltip): fix position change not set back

* revert: revert to detectChanges to avoid blinking
  • Loading branch information
Wendell authored and chensimeng committed Jul 28, 2019
1 parent e9663a2 commit 3dbb6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tooltip/nz-tooltip.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class NzToolTipComponent implements OnChanges {
}

onPositionChange(position: ConnectedOverlayPositionChange): void {
this.nzPlacement = getPlacementName(position)!;
this._placement = getPlacementName(position)!;
this.setClassMap();
this.cdr.detectChanges(); // TODO: performance?
}
Expand Down

0 comments on commit 3dbb6dc

Please sign in to comment.