Answer the question
In order to leave comments, you need to log in
Why doesn't the draggable index change?
There is such a code, the essence is very simple. When dragging elements, the index does not change.
Perhaps I don’t understand how it works, I will be grateful for help
I expect to see the index change in task.sort, but I don’t see
<draggable
v-model="tasks"
:move="checkMove" >
<transition-group >
<div v-for="task in tasks" :key="task.sort" v-model="tasks">
<div class="item" >
{{task.name}} {{task.sort}}
</div>
</div>
</transition-group>
</draggable>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question