Skip to content

Commit

Permalink
fix dragged
Browse files Browse the repository at this point in the history
  • Loading branch information
zdy1988 committed Jan 4, 2018
1 parent 0b4a8bd commit bea2b70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/vue-jstree.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-jstree.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-jstree",
"version": "1.0.9",
"version": "1.0.10",
"description": "a tree plugin for vue2",
"keywords": [
"vue2",
Expand Down
4 changes: 2 additions & 2 deletions src/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@
return;
}
oriItem.children = oriItem.children ? oriItem.children.concat(this.draggedItem.item) : [this.draggedItem.item]
var self = this
var draggedItem = this.draggedItem
this.$nextTick(() => {
self.draggedItem.parentItem.splice(self.draggedItem.index, 1)
draggedItem.parentItem.splice(draggedItem.index, 1)
})
}
}
Expand Down

0 comments on commit bea2b70

Please sign in to comment.