Skip to content

Commit

Permalink
do not add list key to text nodes (fix vuejs#3810)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 29, 2016
1 parent b559547 commit f1e37f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vdom/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f1e37f6

Please sign in to comment.