Skip to content

Dragging from one list to another causes an index is undefined error #51

Description

@alnumac

First check https://github.com/SortableJS/Vue.Draggable/blob/master/CONTRIBUTING.md

In function onDragRemove in vuedraggable.js, the first line points to the variable this.$el, which is a node of type text. The function insertNodeAt expects an element with an attribute of children.

(line 250) onDragRemove: function onDragRemove(evt) { insertNodeAt(this.$el, evt.item, evt.oldIndex); (...)

The next function in the file has already been corrected:

(line 262) onDragUpdate: function onDragUpdate(evt) { removeNode(evt.item); insertNodeAt(evt.from, evt.item, evt.oldIndex); (...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions