Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested v-for bug #3913

Closed
toxic-johann opened this issue Oct 12, 2016 · 0 comments
Closed

nested v-for bug #3913

toxic-johann opened this issue Oct 12, 2016 · 0 comments
Labels

Comments

@toxic-johann
Copy link

Vue.js version

2.0.1 / 2.0.2

Reproduction Link

https://codepen.io/toxic-johann/pen/yajwRO

Steps to reproduce

use a v-for to render component
in component, you have to write a v-for with template in it but not wrapped with a root element
open console, and run test() function

What is Expected?

open console, and run success() function

What is actually happening?

throw the warning

[Vue warn]: It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key.
and error
Uncaught (in promise) TypeError: Cannot read property 'tag' of undefined

it's the same situation as #3810
However, that one contains only two templates with v-if in nested v-for
And this one contains three templates with v-if

And in my project, i contain with more.
So, i also want to know, if there are more template in nested v-for, will it run good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants