[Dialog] Strange behaviour
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/p/sandbox/new-lake-5v0670?file=%2Fsrc%2FApp.tsx
Steps:
- Open the first modal window - for some reason it will open with the width that the adjacent dialog should have (600px)
- Try closing it - it will try to expand to its default value (800px)
Current behavior 😯
No response
Expected behavior 🤔
No response
Context 🔦
Case - If there are two modals on the same page, and one of them has a maxWidth
parameter that is different from the default (the constant value in the <Modal />
component), it will also be applied to the other modal.
Then, when the modal is closed, the width is restored to the default, which causes an ugly animation
Your environment 🌎
Reproducible in codesandbox regardless of my environment
Issue Analytics
- State:
- Created 10 months ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
android - ConstraintLayout inside Dialog - Strange behavior
I'm experiencing some weird behaviour from my dialog when I change the padding of the ConstraintLayout Here's the xml:
Read more >Dialog strange behavior | Vaadin
The strange behavior is when i click outside of the dialog or press Esc the close action is triggered(prints closed), but the dialog...
Read more >Input dialog strange behaviour - Robot - UiPath Forum
when I call my robot with an invoke my input dialog pops up but when entering “123456” the first digit is not registered...
Read more >Strange behavior with print dialog drop-down lists
When I try to print, the drop-downs in the print dialog for selecting the printer, page size, etc. look rather bizarre.
Read more >Strange behavior in Find dialog | Notepad++ Community
A few days ago its Find dialog spontaneously (without an update) began behaving weirdly. Say I want to type 'xyz_mod.h' into the “Find...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It looks like a bug. I’m taking a look.
@e965 That is the only solution. Looks like nothing to do with MUI’s Dialog. Thanks @sai6855 for the solution.