Drag and drop between two lists with preselect
Problem:
When you drag "Item 2" to "list2" without selection - preselected Item 3 disappears
JSBin/JSFiddle demonstrating the problem:
https://jsbin.com/xuceyiwiki/edit?html,js,output
It disappears because Sortable will deselect everything if the user starts dragging a deselected item, because its assumed they don't want to use multidrag if they are dragging an unselected item
It disappears because Sortable will deselect everything if the user starts dragging a deselected item, because its assumed they don't want to use multidrag if they are dragging an unselected item
How can I deselect everything programmatically? I don't want to be able to drag items selected from different lists, it's very confusing for the user when dealing with long trees! thanks
@owen-m1 Perhaps there could be a preventDefault() in the options to disable normal selection in the API?
@quacrobat check out the multidrag docs. This contains util options to programmatically select and deselect items.