I've encountered an issue with the code snippet below. Although I am able to drag elements, I am unable to drop them. How can I trigger the dropFunction when a drop occurs?
Drag code:
<div>
<a class="button" ng-class="{editing: mode == modes.edit_rows}" ng-repeat="col in definition.columns" ng-click="editColumn($index)"
dnd-type="'columnPills'"
dnd-draggable="event"
dnd-effect-allowed="copy"
dnd-copied=""
dnd-effect-allowed="move"
dnd-moved="moveAndDeletePills(definition.rows,$index)">{{name.toString()}}</a></div>
Drop code:
<div dnd-allowed-types="'columnPills'"
dnd-drop="dropFunction(event, index, item, external, type, definition)"
dnd-dragover="true"
dnd-droppable="true">
</div>
I have attempted calling the drop function dropFunction() without any arguments, but unfortunately, the function does not execute.