MCPcopy
hub / github.com/SortableJS/Vue.Draggable / onDragRemove

Function onDragRemove

src/vuedraggable.js:424–435  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

422 },
423
424 onDragRemove(evt) {
425 insertNodeAt(this.rootContainer, evt.item, evt.oldIndex);
426 if (this.isCloning) {
427 removeNode(evt.clone);
428 return;
429 }
430 const oldIndex = this.context.index;
431 this.spliceList(oldIndex, 1);
432 const removed = { element: this.context.element, oldIndex };
433 this.resetTransitionData(oldIndex);
434 this.emitChanges({ removed });
435 },
436
437 onDragUpdate(evt) {
438 removeNode(evt.item);

Callers

nothing calls this directly

Calls 2

insertNodeAtFunction · 0.85
removeNodeFunction · 0.85

Tested by

no test coverage detected