Skip to content

Commit

Permalink
fix: nested drawer does not trigger the parent drawer animation on cl…
Browse files Browse the repository at this point in the history
…ose (#59)
  • Loading branch information
justprogr authored Jun 20, 2024
1 parent 9accc95 commit bdb5860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/breezy-suns-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vaul-vue": patch
---

Fixed nested drawer animation issue
2 changes: 1 addition & 1 deletion packages/vaul-vue/src/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export function useDrawer(props: UseDrawerProps & DialogEmitHandlers): DrawerRoo
if (!drawerRef.value)
return

// emitClose()
emitClose()
set(drawerRef.value.$el, {
transform: isVertical(direction.value)
? `translate3d(0, ${direction.value === 'bottom' ? '100%' : '-100%'}, 0)`
Expand Down

0 comments on commit bdb5860

Please sign in to comment.