emilkowalski / vaul

A drawer component for React.
https://vaul.emilkowal.ski
MIT License
6.46k stars 215 forks source link

Need a way to be able to restore drawer if I don't want to close #508

Open wintercounter opened 2 weeks ago

wintercounter commented 2 weeks ago

In my use-case I have a confirm dialog shown when the drawer is being closed, because the user has modified and unsaved content in the drawer.

If I "intercept" closing the dialog I cannot open it again in this demo: https://stackblitz.com/edit/vitejs-vite-nvm74k?file=src%2FApp.tsx

In my actual case for some reason it works a bit differently. The dialog will stay at the release position and I have to pull the drawer up again, but the point is the same, there should be some way to be able to restore the drawer to open state.