diff --git a/.changeset/breezy-suns-cross.md b/.changeset/breezy-suns-cross.md new file mode 100644 index 0000000..113a4e9 --- /dev/null +++ b/.changeset/breezy-suns-cross.md @@ -0,0 +1,5 @@ +--- +"vaul-vue": patch +--- + +Fixed nested drawer animation issue diff --git a/packages/vaul-vue/src/controls.ts b/packages/vaul-vue/src/controls.ts index 6a78242..83adb9a 100644 --- a/packages/vaul-vue/src/controls.ts +++ b/packages/vaul-vue/src/controls.ts @@ -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)`