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

v-for component props #54

Closed
hellozach opened this issue Jan 9, 2017 · 1 comment
Closed

v-for component props #54

hellozach opened this issue Jan 9, 2017 · 1 comment

Comments

@hellozach
Copy link

hellozach commented Jan 9, 2017

When using v-for on components and sending props to the component, the visual outputs don't display the new order but the Vue data property keeps the new order.

I believe, the indexing and element properties are getting mixed up somewhere. If you move an item between lists then the visual display items are incorrectly labeled but the Vue data is correct. (Edit:) Try moving John below Joao, then move Joao to the next list - you will then see John in the second list (in the grey area).

JSFiddle: https://jsfiddle.net/hellozach/31nqy8dp/

@David-Desmaisons
Copy link
Member

Hi @hellozach , It is not linked to draggable, it is linked to the way you use v-for: add a key attribute on components and it will work: https://jsfiddle.net/dede89/p23uepho/

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

No branches or pull requests

2 participants