File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
packages/runtime-vapor/src/components Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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
@@ -189,6 +192,8 @@ export function applyTransitionHooks(
189192
190193 // fallthrough attrs
191194 if ( fallthroughAttrs && instance . hasFallthrough ) {
195+ // mark single root
196+ ; ( child as any ) . $root = true
192197 applyFallthroughProps ( child , instance . attrs )
193198 }
194199
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ export const VaporTransitionGroup: ObjectVaporComponent = decorate({
153153 insert ( slottedBlock , container )
154154 // fallthrough attrs
155155 if ( instance ! . hasFallthrough ) {
156+ ; ( container as any ) . $root = true
156157 renderEffect ( ( ) => applyFallthroughProps ( container , instance ! . attrs ) )
157158 }
158159 return container
You can’t perform that action at this time.
0 commit comments