Skip to content

Commit cbf217a

Browse files
authored
Force to compute indexes on every drag (#45)
Might be a solution for #28
1 parent 96bd6df commit cbf217a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/VueDraggableNext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ export const VueDraggableNext = defineComponent({
302302
},
303303

304304
onDragStart(evt: OpenObject) {
305+
this.computeIndexes();
305306
this.context = this.getUnderlyingVm(evt.item)
306307
if (!this.context) return
307308
evt.item._underlying_vm_ = this.clone(this.context.element)

0 commit comments

Comments
 (0)