Skip to content

Commit 41aba70

Browse files
committed
fix: mark single root for transition block
1 parent cb8830f commit 41aba70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/runtime-vapor/src/components/Transition.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export const VaporTransition: FunctionalVaporComponent = /*@__PURE__*/ decorate(
7474
const resolvedAttrs = extend({}, attrs)
7575
const child = findTransitionBlock(children)
7676
if (child) {
77+
// mark single root
78+
;(child as any).$root = true
79+
7780
applyFallthroughProps(child, resolvedAttrs)
7881
// ensure fallthrough attrs are not happened again in
7982
// applyTransitionHooks

0 commit comments

Comments
 (0)