I have a list of dragables and some of them are disabled and I allow no drop on them.
I am using the accept function like so:
accept: function (sourceItemHandleScope, destSortableScope, destItemScope) {
var ix = destItemScope && destItemScope.index && destItemScope.index(),
curr = $scope.items[ix];
if (curr && curr.isSeparator) return false;
return true;
},
The issue is that, the ix and curr do not help me understand if the drop placeholder will be placed before or after the curr element. And it appears that it can be either of those.
Am I missing something?
Is there a way to find the items between which the drop placeholder will be placed?
I haven't managed to achieve this in my case.
UPDATE:
I think this is what is missing:

The placeholderIndex should be inserted in target or the sortable scope.
Do you accept PRs for this?