fix(transition-group): vue 2 compatible handling of transition-group w/ multiple v-for children
fix #1126
This commit is contained in:
@@ -100,8 +100,7 @@ const TransitionGroupImpl = {
|
||||
const cssTransitionProps = resolveTransitionProps(rawProps)
|
||||
const tag = rawProps.tag || Fragment
|
||||
prevChildren = children
|
||||
const slotChildren = slots.default ? slots.default() : []
|
||||
children = getTransitionRawChildren(slotChildren)
|
||||
children = slots.default ? getTransitionRawChildren(slots.default()) : []
|
||||
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
const child = children[i]
|
||||
@@ -126,7 +125,7 @@ const TransitionGroupImpl = {
|
||||
}
|
||||
}
|
||||
|
||||
return createVNode(tag, null, slotChildren)
|
||||
return createVNode(tag, null, children)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user