Skip to content

Commit

Permalink
fix(tooltip): 修复 tooltip 相同数据显示隐藏再显示时不展示的问题. Closed #2174, #2175
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Mar 17, 2020
1 parent fdf485c commit c3357c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chart/controller/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default class Tooltip extends Controller<TooltipOption> {
if (this.tooltip) {
const newPoint = follow ? point : dataPoint;
this.tooltip.update(newPoint);
this.tooltip.show(); // tooltip 有可能被隐藏,需要保证显示状态
}
}

Expand Down

0 comments on commit c3357c1

Please sign in to comment.