Skip to content

Commit

Permalink
skip-release - fix(core): highlight correct cell when multiple heatma…
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat55 committed Sep 14, 2022
1 parent b0e7d5e commit 7092cae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/components/graphs/heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ export class Heatmap extends Component {
cell.attr('transform')
);

select('g.cell-highlight')
self.parent
.select('g.cell-highlight')
.attr(
'transform',
`translate(${
Expand Down Expand Up @@ -329,7 +330,9 @@ export class Heatmap extends Component {
const hoveredElement = cell.select('rect.heat');
const nullState = hoveredElement.classed('null-state');

select('g.cell-highlight').classed('highlighter-hidden', true);
self.parent
.select('g.cell-highlight')
.classed('highlighter-hidden', true);

// Dispatch event and tooltip only if value exists
if (!nullState) {
Expand Down

0 comments on commit 7092cae

Please sign in to comment.