emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
6k stars 201 forks source link

`onOpenChange` getting called twice when user clicks outside of the drawer #290

Closed phxgg closed 6 months ago

phxgg commented 6 months ago

For some reason, onOpenChange gets called twice when a user clicks outside the drawer.

This does not happen when a user manually drags the drawer to the bottom.

Observe console logs on this sandbox: https://codesandbox.io/p/devbox/drawer-with-scale-forked-t29rgr

LakshayGMZ commented 6 months ago

encountering same issue, please fix maintainers!!

emilkowalski commented 6 months ago

Fixed in #297