diff --git a/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js b/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js index 987250436..4bd86803a 100644 --- a/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js +++ b/packages/superset-ui-legacy-preset-chart-nvd3/src/ReactNVD3.js @@ -18,5 +18,10 @@ */ import { reactify } from '@superset-ui/chart'; import Component from './NVD3Vis'; +import { hideTooltips } from './utils'; -export default reactify(Component); +function willUnmount() { + hideTooltips(true); +} + +export default reactify(Component, { willUnmount });