fix: Tooltips don't disappear on the Heatmap chart (#24959)

This commit is contained in:
Michael S. Molina 2023-08-11 13:40:45 -03:00 committed by GitHub
parent 4bc46003b5
commit 9703490129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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}>