ui icon indicating copy to clipboard operation
ui copied to clipboard

Can not close dialog by clicking on the backdrop

Open NguyenHoangHieu22GIT2 opened this issue 2 years ago • 2 comments

I created a dialog for people to report other's posts, everything was fine. The close button worked with ease, but I noticed that a backdrop didn't have any effect when clicking, I mean I want it to close the dialog, but it just doesn't do anything. So can the devs update this functionality ? make my life a little bit easier :D thanks

NguyenHoangHieu22GIT2 avatar Oct 28 '23 11:10 NguyenHoangHieu22GIT2

You might be using AlertDialog instead of Dialog.

michaeltroya avatar Nov 05 '23 22:11 michaeltroya

I believe OP is referring to making the backdrop and everything aside from the dialog content "inert". There is a prop on dialog from Radix called modal that is accidentally ignored.

josephdburdick avatar Dec 07 '23 22:12 josephdburdick

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Feb 13 '24 23:02 shadcn