fisshy/angular-drag-drop

end function doesn't get data

Closed this issue · 2 comments

line 61

if(angular.isFunction(me.end)){
            $scope.$apply(function() {
              me.end(dndApi.getData(), $elem);
            });
          }

the function dndApi.getData() returns undefined for me

the same code for the start callback works fine, line 45.

oh, i see that dndApi.getData() only works if i didn't drop on a drop target.
is this intended or not?
also, this should probably be in the documentation.

Drag element kan only be dropped on drop elements.

Maybe I should make it more clear.