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.59k stars 3.7k forks source link

Limit drag and drop #1824

Open pm4698 opened 4 years ago

pm4698 commented 4 years ago

Hello there.

I am creating several divs with class nested-sortable and i apply sortablejs to these elements.

What i would like to do is to limit drag/drop only between childs of each element. In other words, i need to sort elements per div and not be able to drag/drop elements from one div to another.

Apologies if it is duplicate but i didn't find something about this one

Thank you in advance

benneynens commented 4 years ago

Was looking for a solution to the same issue, and found this: https://github.com/SortableJS/Sortable/issues/1801