We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bc0ed9 commit 9acce54Copy full SHA for 9acce54
packages/runtime-dom/src/components/TransitionGroup.ts
@@ -113,7 +113,8 @@ const TransitionGroupImpl: ComponentOptions = {
113
tag = 'span'
114
}
115
116
- prevChildren = children
+ prevChildren =
117
+ children && children.filter(child => !isComment(child.el as Element))
118
children = slots.default ? getTransitionRawChildren(slots.default()) : []
119
120
for (let i = 0; i < children.length; i++) {
@@ -129,9 +130,6 @@ const TransitionGroupImpl: ComponentOptions = {
129
130
131
132
if (prevChildren) {
- prevChildren = prevChildren.filter(
133
- child => !isComment(child.el as Element)
134
- )
135
for (let i = 0; i < prevChildren.length; i++) {
136
const child = prevChildren[i]
137
setTransitionHooks(
0 commit comments