-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Open
Labels
docsImprovements or additions to the documentation.Improvements or additions to the documentation.scope: dialogChanges related to the dialog.Changes related to the dialog.v5.x
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Steps to reproduce πΉ
Link to live example:
Steps:
MUI5 - https://codesandbox.io/s/angry-mclaren-vgmhu6?file=/demo.tsx
1.Embed a Dialog in the code
2.Set it to open={false}
3.The dialog still renders in the DOM but is closed
MUI4- https://codesandbox.io/s/material-demo-forked-qm3dub?file=/demo.js
1.Embed a Dialog in the code
2.Set it to open={false}
3.The dialog does not render in the DOM
This has not been mentioned in the changes in the MUI5 document. This is breaking a few things in my app
Current behavior π―
1.Embed a Dialog in the code
2.Set it to open={false}
3.The dialog still renders but is closed
Expected behavior π€
1.Embed a Dialog in the code
2.Set it to open={false}
3.The dialog should not render
Context π¦
ON upgrading from MUI4 to MUI5, the dialog behaviour changed causing issues
Your environment π
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
gkielwasser, Dhyey, MatzeDS, PeterZainzinger, komaldeep and 1 more
Metadata
Metadata
Assignees
Labels
docsImprovements or additions to the documentation.Improvements or additions to the documentation.scope: dialogChanges related to the dialog.Changes related to the dialog.v5.x