[material-ui][Dialog] maxWidth exceeds in v6 #43636
Labels
bug 🐛
Something doesn't work
component: dialog
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
regression
A bug, but worse
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-koqgrc?file=Demo.tsx
Steps:
Current behavior
The dialog is wider than the available screen space and is not scrollable, even though it's specified
maxWidth="sm"
.Expected behavior
The dialog should limit itself to the specified
maxWidth
, and since this content is too wide, it should scroll.Context
This is a regression in v6 and is the same root cause as #43572 - the
overflowY: 'auto'
that was removed was also implicitly settingoverflowX: 'auto'
. Therefore, #43626 should also fix this issue.Your environment
npx @mui/envinfo
Search keywords: Dialog maxWidth
The text was updated successfully, but these errors were encountered: