diff --git a/app/src/atoms/MenuList/index.tsx b/app/src/atoms/MenuList/index.tsx index 1994e6b24d9..25571e87e01 100644 --- a/app/src/atoms/MenuList/index.tsx +++ b/app/src/atoms/MenuList/index.tsx @@ -8,6 +8,8 @@ import { BORDERS, JUSTIFY_CENTER, } from '@opentrons/components' +import { createPortal } from 'react-dom' +import { getTopPortalEl } from '../../App/portal' import { LegacyModalShell } from '../../molecules/LegacyModal' interface MenuListProps { @@ -19,19 +21,22 @@ interface MenuListProps { export const MenuList = (props: MenuListProps): JSX.Element | null => { const { children, isOnDevice = false, onClick = null } = props return isOnDevice && onClick != null ? ( - - - {children} - - + + {children} + + , + getTopPortalEl() + ) ) : (