-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
needs reproA reproduction of the bug (GitHub repo, CodeSandbox) is neededA reproduction of the bug (GitHub repo, CodeSandbox) is needed
Description
What component (if applicable)
- URL for category: https://catalyst.tailwindui.com/docs/dialog
- Component name: Dialog
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
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 neededA reproduction of the bug (GitHub repo, CodeSandbox) is needed