Vue.draggable: cant update unique item when clone

Created on 16 Mar 2018  路  2Comments  路  Source: SortableJS/Vue.Draggable

Jsfiddle link

Step by step scenario

i have two list (A,B), and i want to clone item from A to B and update the target object when dropped element in list B.

the issue here is i cant update specific item in targeted list, for example i generate a random id by using :clone event from A, or @change event in B but its applied on second, third,.. items too so the id same for all items in list B.

it seems when change on list B there is something applied on all objects in the list so how can i avoid it, while i am use :list property not v-model.

can u please help how to solve this issue.

Actual Solution

Expected Solution

All 2 comments

I am closing this one as it does not follow the CONTRIBUTING guideline.

I fixed that using cloneDeep from lodash in the clone function.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

parthibeyond picture parthibeyond  路  3Comments

mathlet0x picture mathlet0x  路  4Comments

fedenko picture fedenko  路  3Comments

Leadaxe picture Leadaxe  路  3Comments

Stetzon picture Stetzon  路  3Comments