mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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 { Global } from '@emotion/react';
|
||||||
import Component from './Heatmap';
|
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 }) => (
|
const Heatmap = ({ className, ...otherProps }) => (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
|
Loading…
Reference in New Issue
Block a user