do not add list key to text nodes (fix #3810)

This commit is contained in:
Evan You 2016-09-29 12:52:05 -04:00
parent b5595476f1
commit f1e37f6002
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export function normalizeChildren (
applyNS(c, ns)
}
// default key for nested array children (likely generated by v-for)
if (c.key == null && nestedIndex != null) {
if (c.tag && c.key == null && nestedIndex != null) {
c.key = `__vlist_${nestedIndex}_${i}__`
}
res.push(c)