Skip to content

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

Closed
@alnumac

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); (...)

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