ShadCn Dialog - running code onClose
Hey, wondering if anyone can help me to understand how this might work - I've got a dialog that contains a form. I've got a close dialog button in the dialog that runs some code, however if the user closes the dialog by clicking outside it, the code isn't run.
How might I configure the dialog to run this code when the form is closed by clicking outside?
How might I configure the dialog to run this code when the form is closed by clicking outside?
Solution
A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
