Open smebrahimi opened 2 years ago
I solved it, the demo is incorrect
From
<draggable
class="dragArea"
tag="ul"
:list="tasks"
:group="{ name: 'g1' }"
item-key="name"
>
<template #item="{ element }">
<li>
<p>{{ element.name }}</p>
<nested-draggable :tasks="element.tasks" />
</li>
</template>
</draggable>
To
<draggable
class="dragArea"
tag="ul"
:list="tasks"
:group="{ name: 'g1' }"
item-key="name"
>
<template #item="{ element }">
<li>
<p>{{ element.name }}</p>
<nested-draggable :list="element.tasks" :tasks="element.tasks"/>
</li>
</template>
</draggable>
I'm trying to use nested draggable, visually is works but my list didn't update after I drag & drop an item Actually, the object does not change
Code:
Object:
I expect the object to be updated after each change