Vue.draggable: Cloning uses the same object reference - instead of actually cloning

Created on 8 Aug 2017  路  2Comments  路  Source: SortableJS/Vue.Draggable

Hey,
I love the plugin, however, I found a flaw that I am not sure how to correct.

I made the minimum viable bug reproduction scenario here: https://jsfiddle.net/t3m5krea/150/

If you try to drag and drop the same element from the first list to the second multiple times, you will see that when I change the item's name on the added event, it changes EVERY related list item. I believe the intended behavior would be for it to only change the new list item.

Most helpful comment

Hello @TheWildHorse , you should use clone prop:

https://jsfiddle.net/dede89/s6jeLttf/

All 2 comments

Hello @TheWildHorse , you should use clone prop:

https://jsfiddle.net/dede89/s6jeLttf/

@David-Desmaisons Brilliant, thank you for your help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Stetzon picture Stetzon  路  3Comments

karam94 picture karam94  路  3Comments

Nrqz picture Nrqz  路  3Comments

steffanhalv picture steffanhalv  路  3Comments

ghost picture ghost  路  3Comments