]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: mark single root for transition block
authordaiwei <daiwei521@126.com>
Thu, 19 Jun 2025 06:41:06 +0000 (14:41 +0800)
committerdaiwei <daiwei521@126.com>
Thu, 19 Jun 2025 06:41:06 +0000 (14:41 +0800)
packages/runtime-vapor/src/components/Transition.ts

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