diff --git a/packages/grafana-ui/src/components/Drawer/Drawer.tsx b/packages/grafana-ui/src/components/Drawer/Drawer.tsx index 7d115e3f9d0..678b71adb25 100644 --- a/packages/grafana-ui/src/components/Drawer/Drawer.tsx +++ b/packages/grafana-ui/src/components/Drawer/Drawer.tsx @@ -12,6 +12,7 @@ import { useStyles2 } from '../../themes/ThemeContext'; import { getDragStyles } from '../DragHandle/DragHandle'; import { IconButton } from '../IconButton/IconButton'; import { Stack } from '../Layout/Stack/Stack'; +import { getPortalContainer } from '../Portal/Portal'; import { ScrollContainer } from '../ScrollContainer/ScrollContainer'; import { Text } from '../Text/Text'; @@ -128,7 +129,7 @@ export function Drawer({ motionName: styles.maskMotion, }} > - + [getPortalContainer()]}>
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
) { className={styles.modalBackdrop} onClick={onClickBackdrop || (closeOnBackdropClick ? onDismiss : undefined)} /> - + [getPortalContainer()]}>
- + [getPortalContainer()]}>