Skip to content

Commit e70ca5d

Browse files
committed
fix(TransitionGroup): simplify dev-only warning condition for unkeyed children
1 parent 71e2495 commit e70ca5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-vapor/src/components/TransitionGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const VaporTransitionGroup: ObjectVaporComponent = decorate({
141141
)
142142
hooks.group = true
143143
setTransitionHooks(child, hooks)
144-
} else if (__DEV__ && child.$key == null) {
144+
} else if (__DEV__) {
145145
warn(`<transition-group> children must be keyed`)
146146
}
147147
}

0 commit comments

Comments
 (0)