mirror of https://github.com/vuejs/core.git
fix: mark single root for transition block
This commit is contained in:
parent
cb8830fdc2
commit
41aba70529
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue