X/Close button of shadcn Dialog does not work if I use "open" prop of element.
I don't see in shadcn or radix docs an event handler for the default X/close button (the one in top right).
I need to use the open prop to close the Dialog after an async operation has completed.
You need to pass
setOpen
toonOpenChange
prope.g.
P.S This will also allow users to click outside the dialog to close it which may or may not be the wanted behavior