diff --git a/packages/runtime-core/src/components/BaseTransition.ts b/packages/runtime-core/src/components/BaseTransition.ts index b1ee5da6..104fe097 100644 --- a/packages/runtime-core/src/components/BaseTransition.ts +++ b/packages/runtime-core/src/components/BaseTransition.ts @@ -136,8 +136,8 @@ const BaseTransitionImpl = { const state = useTransitionState() return () => { - const children = getTransitionRawChildren( - slots.default ? slots.default() : [], + const children = slots.default && getTransitionRawChildren( + slots.default(), true ) if (!children || !children.length) {