Vue.draggable: Adding "v-model" to a draggable makes it not draggable

Created on 27 Jul 2017  路  3Comments  路  Source: SortableJS/Vue.Draggable

Here is a sample of code :

onMove function just returns true, onStart and onFinished are empty (but I want to do something with them in the future ;) )
When the "v-model" property is here, the li tags which are created cannot be swapped.
When I remove this property, the li tags can be swapped.

Do you see the problem? Are they some "conflicts" between some properties that I am not aware of?

Most helpful comment

All 3 comments

Is v-for and v-model are referencing the same object?
If not => jsfiddle

The solution of @VernalVessel is the good one : "The main diference is that list prop is updated by draggable component using splice method, whereas value is immutable." It's exactly what I was searching for :)
Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nrqz picture Nrqz  路  3Comments

iou90 picture iou90  路  3Comments

Stetzon picture Stetzon  路  3Comments

parthibeyond picture parthibeyond  路  3Comments

Leadaxe picture Leadaxe  路  3Comments