Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

dnd-drop overwrites dnd-moved #513

Open
erperejildo opened this issue Jun 22, 2020 · 0 comments
Open

dnd-drop overwrites dnd-moved #513

erperejildo opened this issue Jun 22, 2020 · 0 comments

Comments

@erperejildo
Copy link

I had the second one working fine but since I added a empty dnd-drop it doesn't work:

<ul dnd-list="list" dnd-drop="onDrop(list, item, index)">
                <li ng-repeat="item in list"
                    dnd-draggable="item"
                    dnd-effect-allowed="move"
                    dnd-moved="list.splice($index, 1)"
                    ng-class="{selected: models.selected === item}"
                    ng-include="item.type + '.html'">
                </li>
            </ul>
$scope.onDrop = function(list, item, index) {
        console.log("finished ")
      };
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant