Skip to content

Commit 742b19c

Browse files
Remove old transition logic
1 parent c7c36be commit 742b19c

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

src/vuedraggable.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ const props = {
103103
required: false,
104104
default: null
105105
},
106-
noTransitionOnDrag: {
107-
type: Boolean,
108-
default: false
109-
},
110106
clone: {
111107
type: Function,
112108
default: original => {
@@ -357,17 +353,6 @@ const draggableComponent = defineComponent({
357353
return this.$slots.default()[0].componentInstance;
358354
},
359355

360-
resetTransitionData(index) {
361-
if (!this.noTransitionOnDrag || !this.transitionMode) {
362-
return;
363-
}
364-
var nodes = this.getChildrenNodes();
365-
nodes[index].data = null;
366-
const transitionContainer = this.getComponent();
367-
transitionContainer.children = [];
368-
transitionContainer.kept = undefined;
369-
},
370-
371356
onDragStart(evt) {
372357
this.context = this.getUnderlyingVm(evt.item);
373358
evt.item._underlying_vm_ = this.clone(this.context.element);
@@ -396,7 +381,6 @@ const draggableComponent = defineComponent({
396381
const oldIndex = this.context.index;
397382
this.spliceList(oldIndex, 1);
398383
const removed = { element: this.context.element, oldIndex };
399-
this.resetTransitionData(oldIndex);
400384
this.emitChanges({ removed });
401385
},
402386

tests/unit/vuedraggable.spec.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ describe("draggable.vue when initialized with list", () => {
128128
default: null
129129
}
130130
],
131-
[
132-
"noTransitionOnDrag",
133-
{
134-
type: Boolean,
135-
default: false
136-
}
137-
],
138131
[
139132
"tag",
140133
{

0 commit comments

Comments
 (0)