Set all popovers withinPortal by default

This commit is contained in:
jeffvli
2022-11-03 14:41:34 -07:00
parent 53a7d728b3
commit 5908554f38
4 changed files with 11 additions and 4 deletions
@@ -45,7 +45,11 @@ const StyledMenuDivider = styled(MantineMenu.Divider)`
`;
export const DropdownMenu = ({ children, ...props }: MenuProps) => {
return <StyledMenu {...props}>{children}</StyledMenu>;
return (
<StyledMenu withinPortal {...props}>
{children}
</StyledMenu>
);
};
const MenuLabel = ({ children, ...props }: MenuLabelProps) => {