SortableJS / Vue.Draggable

Vue drag-and-drop component based on Sortable.js
https://sortablejs.github.io/Vue.Draggable/
MIT License
20.19k stars 2.9k forks source link

Drag a copy into same list #1112

Open soju-ti opened 2 years ago

soju-ti commented 2 years ago

I would like to know how can we clone a draggable item into the same list itself, I can only see it is cloning across the list. https://sortablejs.github.io/Vue.Draggable/#/clone is the feature available?

saiddjelmo commented 2 years ago

@soju-ti do you find solution for this ?

soju-ti commented 2 years ago

@soju-ti do you find solution for this ?

Listen to move callback and create a copy in the old index onces move is completed, however this solution only works if your list has more than one item.

Another approach i am suggesting is to add a button which basically clone the item into same list to the end.user can reorder after clone is completed