Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alnumac opened this issue Jun 3, 2021 · 2 comments
Closed

Comments

@alnumac
Copy link

alnumac commented Jun 3, 2021

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

@alnumac
Copy link
Author

alnumac commented Jun 3, 2021

#52 Submitted to correct the issue

@alnumac
Copy link
Author

alnumac commented Jun 3, 2021

Duplicate of #34

@alnumac alnumac closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant