diff --git a/superset-frontend/src/components/Chart/ChartContextMenu.tsx b/superset-frontend/src/components/Chart/ChartContextMenu.tsx index 612bd455d0018..2eba7bbaad95e 100644 --- a/superset-frontend/src/components/Chart/ChartContextMenu.tsx +++ b/superset-frontend/src/components/Chart/ChartContextMenu.tsx @@ -26,6 +26,7 @@ import React, { import { QueryObjectFilterClause, t, styled } from '@superset-ui/core'; import { Menu } from 'src/components/Menu'; import { AntdDropdown as Dropdown } from 'src/components'; +import ReactDOM from 'react-dom'; const MENU_ITEM_HEIGHT = 32; const MENU_VERTICAL_SPACING = 32; @@ -116,7 +117,7 @@ const ChartContextMenu = ( [open], ); - return ( + return ReactDOM.createPortal( - + , + document.body, ); };