Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useDialogs close function not working as expected #4706

Closed
ns-ovc opened this issue Feb 27, 2025 · 2 comments · Fixed by #4707
Closed

useDialogs close function not working as expected #4706

ns-ovc opened this issue Feb 27, 2025 · 2 comments · Fixed by #4707
Labels
bug 🐛 Something doesn't work

Comments

@ns-ovc
Copy link

ns-ovc commented Feb 27, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: https://codesandbox.io/p/sandbox/fancy-leaf-w3vmvl
  2. Click on the button "OPEN CUSTOM"
  3. Wait 3 seconds

Current behavior

Image

Expected behavior

The dialog closes, as descriped in https://mui.com/toolpad/core/react-use-dialogs/api/#dialogs-close

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: useDialogs, close

@ns-ovc ns-ovc added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 27, 2025
@bharatkashyap bharatkashyap added bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 27, 2025
@bharatkashyap
Copy link
Member

bharatkashyap commented Feb 27, 2025

I can replicate this from the sandbox; not sure if the usage here is meant to be supported or not? @Janpot

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@ns-ovc How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants