Skip to content

Commit

Permalink
fix: make transition-group key warning a tip to avoid breaking compil…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
yyx990803 committed Dec 21, 2018
1 parent 1c105fb commit d08b49f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ function processKey (el) {
if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
warn(
`Do not use v-for index as key on <transition-group> children, ` +
`this is the same as not using keys.`
`this is the same as not using keys.`,
true /* tip */
)
}
}
Expand Down

0 comments on commit d08b49f

Please sign in to comment.