mirror of https://github.com/apache/superset.git
fix: Tooltips don't disappear on the Heatmap chart (#24959)
This commit is contained in:
parent
4bc46003b5
commit
9703490129
|
@ -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}>
|
||||
|
|
Loading…
Reference in New Issue