huntabyte / vaul-svelte

An unstyled drawer component for Svelte.
https://vaul-svelte.com
MIT License
419 stars 17 forks source link

Bug: Closing drawer programatically leads to no exit transition #16

Closed NathanealV closed 8 months ago

NathanealV commented 8 months ago

Issue Description:

On mobile devices, changing the open prop/using Drawer.Close (e.g., using the close button in the drawer) breaks the exit transition and no animation is seen.

Steps to Reproduce:

  1. Open the drawer by clicking the button on the shadcn-svelte website from a mobile device.
  2. Click on Edit Profile.
  3. Click on the cancel button in the footer section.

Expected Behavior:

The drawer should close with the appropriate exit animation (sliding down).

Actual Behavior:

No exit transition is seen and drawer jumps back to closed state.