Sortable
Sortable copied to clipboard
Multidrag: Prevent deselect on click
I have a sortable with MultiDrag enabled. I have 2 buttons 'Add' and 'Remove' I want to be able to select multiple items and then click 'Remove', to remove the selected items, however as soon as I click on the Remove button, before my click handler runs the items are deselected. I generally just want my selected items to remain selected when I click outside the draggable context. How do I do it?
same issue. hoping to get support or an API for it.
Do you have any workaround for this?
duplicate of #1612
The solution looks to be to prevent the deselect early using this code snippet: https://github.com/SortableJS/Sortable/issues/1612#issuecomment-533777362