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(
74
74
const resolvedAttrs = extend ( { } , attrs )
75
75
const child = findTransitionBlock ( children )
76
76
if ( child ) {
77
+ // mark single root
78
+ ; ( child as any ) . $root = true
79
+
77
80
applyFallthroughProps ( child , resolvedAttrs )
78
81
// ensure fallthrough attrs are not happened again in
79
82
// applyTransitionHooks
@@ -189,6 +192,8 @@ export function applyTransitionHooks(
189
192
190
193
// fallthrough attrs
191
194
if ( fallthroughAttrs && instance . hasFallthrough ) {
195
+ // mark single root
196
+ ; ( child as any ) . $root = true
192
197
applyFallthroughProps ( child , instance . attrs )
193
198
}
194
199
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ export const VaporTransitionGroup: ObjectVaporComponent = decorate({
153
153
insert ( slottedBlock , container )
154
154
// fallthrough attrs
155
155
if ( instance ! . hasFallthrough ) {
156
+ ; ( container as any ) . $root = true
156
157
renderEffect ( ( ) => applyFallthroughProps ( container , instance ! . attrs ) )
157
158
}
158
159
return container
You can’t perform that action at this time.
0 commit comments