Sortable
Sortable copied to clipboard
[bug] revertOnSpill broken with `sort: false` (`putSortable` empty)
Describe the bug
When using sortableJS to allow moving items from one list to another without sorting functionality (with sort: false), the revertOnSpill plugin breaks the ability to move items from one list to another.
That's because putSortable for some reason is empty in the object given to the plugin with sortable: false.
To Reproduce Steps to reproduce the behavior:
- Create a nested list with sublist, all of them with
group: { name: 'group', pull: true, put: true }andsort: false - Make sure that moving items between the lists back and forth works
- Add
revertOnSpill: trueto the Sortable config object - Try to move items between the list
- Moving items up to a parent list will not work because
pubSortableis empty - Moving items down to a child list still works because
toSortableis set toactiveSortable, which is a parent of the child list
Expected behavior
Information
sortablejs = ^1.10.2 (dependency of vue.draggable)