With "draggable" option enabled, erratic behavior with items not immediately children of sortable
I use bootstrap's lists, with some div's in lists to group items by a headline. When using SortableJS on such a list, and I drag an item from a group in the list, sortableJS will drag the whole group. This can be reproduced by disabling draggable on line 16 in index.html, and trying to drag an item from the left list to the right.
I want to drag just single items, so I use draggable and add that class to each item (my example as sent).
Problem: Some items in groups can't be dragged. The 2 last items, which are in a group div and are thus not immediate children of
If I change, in _prepareDragStart:
if (target && !dragEl && target.parentNode === el) {
to
if (target && !dragEl) {
then I can drag all.
I've looked at the file you sent and based on configugartion ,it's working as intended.
I'm having trouble understanding your problem. Could you rephrase the problem?
Hi, sorry, I have in the meantime migrated the project to react/react-beutiful-dnd, and I don't have the code any more.