Skip to content

Always opened Dialog not visible #1723

@ooga

Description

@ooga

What component (if applicable)

Describe the bug
Dialog is not visible when mounted with open={true}
The overlay is not visible but prevent to interact with component behind
The Dialog and the overlay are added in the DOM (see Screenshot)

Expected behavior
Dialog is visible

Screenshots
Image

Additional context
I'm actually forced to delay Dialog mount to make it work

const [open, setOpen] = useState(false);
useEffect(() => {
  if (!open) {
    setOpen(true);
  }
}, []);

Metadata

Metadata

Assignees

Labels

needs reproA reproduction of the bug (GitHub repo, CodeSandbox) is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions