Skip to content

Commit

Permalink
fix: Tooltips don't disappear on the Heatmap chart (#24959)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9703490)
  • Loading branch information
michael-s-molina committed Aug 14, 2023
1 parent 5231920 commit 5c931b1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ import { reactify, css, styled } from '@superset-ui/core';
import { Global } from '@emotion/react';
import Component from './Heatmap';

const ReactComponent = reactify(Component);
function componentWillUnmount() {
// Removes tooltips from the DOM
document.querySelectorAll('.d3-tip').forEach(t => t.remove());
}

const ReactComponent = reactify(Component, { componentWillUnmount });

const Heatmap = ({ className, ...otherProps }) => (
<div className={className}>
Expand Down

0 comments on commit 5c931b1

Please sign in to comment.