fix: mark single root for transition block

This commit is contained in:
daiwei 2025-06-19 14:41:06 +08:00
parent cb8830fdc2
commit 41aba70529
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ export const VaporTransition: FunctionalVaporComponent = /*@__PURE__*/ decorate(
const resolvedAttrs = extend({}, attrs) const resolvedAttrs = extend({}, attrs)
const child = findTransitionBlock(children) const child = findTransitionBlock(children)
if (child) { if (child) {
// mark single root
;(child as any).$root = true
applyFallthroughProps(child, resolvedAttrs) applyFallthroughProps(child, resolvedAttrs)
// ensure fallthrough attrs are not happened again in // ensure fallthrough attrs are not happened again in
// applyTransitionHooks // applyTransitionHooks