Skip to content

Commit

Permalink
fix: fix the error in custom tooltip handler in big-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
zamhown authored and skie1997 committed Mar 6, 2024
1 parent eccb133 commit fb2a92f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vchart/src/component/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ export class Tooltip extends BaseComponent<any> implements ITooltip {
this._isTooltipShown = true;
}
// 全局唯一 tooltip
const vchart = this._option.globalInstance;
if (success && VChart.globalConfig.uniqueTooltip) {
const vchart = this._option?.globalInstance;
if (success && VChart.globalConfig.uniqueTooltip && vchart) {
VChart.hideTooltip(vchart.id);
}
return success;
Expand Down

0 comments on commit fb2a92f

Please sign in to comment.