SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.77k stars 3.71k forks source link

Move element between shared lists #2286

Open joaocosta-azores opened 1 year ago

joaocosta-azores commented 1 year ago

I'm trying to move an element between lists. I'm able to drag between shared lists but after dragging to one of the lists, I show a popup where the user needs to confirm if he wants to move it. If user cancels I want to move item back to previous list. Any idea how i can accomplish this? I don't see a way to move items programmatically.

mlisowsk commented 1 year ago

Try this, it works for me: https://github.com/SortableJS/Sortable/issues/266#issuecomment-1619729909