question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Dialog] Strange behaviour

See original GitHub issue

Duplicates

  • 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:

  1. Open the first modal window - for some reason it will open with the width that the adjacent dialog should have (600px)
  2. 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:closed
  • Created 10 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
siriwatknpcommented, Dec 6, 2022

It looks like a bug. I’m taking a look.

0reactions
ZeeshanTambolicommented, Dec 13, 2022

@e965 That is the only solution. Looks like nothing to do with MUI’s Dialog. Thanks @sai6855 for the solution.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found