Skip to content

Commit f1e37f6

Browse files
committed
do not add list key to text nodes (fix #3810)
1 parent b559547 commit f1e37f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/vdom/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function normalizeChildren (
3535
applyNS(c, ns)
3636
}
3737
// default key for nested array children (likely generated by v-for)
38-
if (c.key == null && nestedIndex != null) {
38+
if (c.tag && c.key == null && nestedIndex != null) {
3939
c.key = `__vlist_${nestedIndex}_${i}__`
4040
}
4141
res.push(c)

0 commit comments

Comments
 (0)