Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Joy][Menu] Set disablePortal default to false #34283

Merged
merged 3 commits into from Sep 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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