Skip to content

Commit

Permalink
[Joy][menu] Set disablePortal default to false (mui#34283)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-sodzawiczny authored and Daniel Rabe committed Nov 29, 2022
1 parent 287d03f commit 6eb4b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-joy/src/Menu/Menu.tsx
Expand Up @@ -43,7 +43,7 @@ const MenuRoot = styled(ListRoot, {
...scopedVariables,
boxShadow: theme.vars.shadow.md,
overflow: 'auto',
zIndex: 1000,
zIndex: 1300, // the same value as Material UI Menu. TODO: revisit the appropriate value later.
...(!variantStyle?.backgroundColor && {
backgroundColor: theme.vars.palette.background.surface,
}),
Expand All @@ -62,7 +62,7 @@ const Menu = React.forwardRef(function Menu(inProps, ref) {
children,
component,
color = 'neutral',
disablePortal = true,
disablePortal = false,
keepMounted = false,
id,
onClose,
Expand Down

0 comments on commit 6eb4b46

Please sign in to comment.