Closed namnguyen2091 closed 1 year ago
The click has to bubble to the document object for it to deselect, but you can use Sortable.utils.deselect to deselect any or all of the selected elements whenever you want https://github.com/SortableJS/Sortable/tree/master/plugins/MultiDrag#sortableutils
Custom Case 1: I use my mouse to click one area outside of drag and drop, and I see "sortable-selected" class in items are removed.
Case 2: Like case 1 but I use jquery to click to element A but "sortable-selected" can not be removed. In this case I want to do the same result as case 1. Why??? and how to do case 2 like case 1.