diff --git a/packages/runtime-core/src/components/BaseTransition.ts b/packages/runtime-core/src/components/BaseTransition.ts index a31f28b2388..37534ad699f 100644 --- a/packages/runtime-core/src/components/BaseTransition.ts +++ b/packages/runtime-core/src/components/BaseTransition.ts @@ -193,7 +193,10 @@ const BaseTransitionImpl: ComponentOptions = { // #11061, ensure enterHooks is fresh after clone hooks => (enterHooks = hooks), ) - setTransitionHooks(innerChild, enterHooks) + + if (innerChild.type !== Comment) { + setTransitionHooks(innerChild, enterHooks) + } const oldChild = instance.subTree const oldInnerChild = oldChild && getInnerChild(oldChild)