Skip to content

Commit

Permalink
fix: nested drawer does not trigger the parent drawer animation on close
Browse files Browse the repository at this point in the history
  • Loading branch information
justprogr committed Jun 20, 2024
1 parent 9accc95 commit a61c33c
Showing 1 changed file with 1 addition and 1 deletion.
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 a61c33c

Please sign in to comment.