From 70da6cfd4ae06629c7c3570fd6fcbc08bafbc96a Mon Sep 17 00:00:00 2001 From: alnumac <63373463+alnumac@users.noreply.github.com> Date: Thu, 3 Jun 2021 16:10:47 -0400 Subject: [PATCH] Fix for issue 51, switched this.$el with evt.from onDragUpdate was updated to use evt.from to call insertNodeAt, but onDragRemove was not updated accordingly. --- src/vuedraggable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vuedraggable.js b/src/vuedraggable.js index 90c0fea..e39a352 100644 --- a/src/vuedraggable.js +++ b/src/vuedraggable.js @@ -248,7 +248,7 @@ const draggableComponent = defineComponent({ }, onDragRemove(evt) { - insertNodeAt(this.$el, evt.item, evt.oldIndex); + insertNodeAt(evt.from, evt.item, evt.oldIndex); if (evt.pullMode === "clone") { removeNode(evt.clone); return;