diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-dimension/src/getTextDimension.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-dimension/src/getTextDimension.ts index 1f1cf4e990a11..f486bfaeb71ae 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-dimension/src/getTextDimension.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-dimension/src/getTextDimension.ts @@ -41,6 +41,7 @@ export default function getTextDimension( const svg = document.createElementNS(SVG_NS, 'svg'); svg.style.position = 'absolute'; // so it won't disrupt page layout svg.style.opacity = '0'; // and not visible + svg.style.pointerEvents = 'none'; // and not capturing mouse events svg.appendChild(textNode); container.appendChild(svg);