We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9919e3 commit 7c6e1e7Copy full SHA for 7c6e1e7
src/plugins/draggable/Draggable.vue
@@ -89,6 +89,7 @@ export default {
89
},
90
// override
91
getPathByBranchEl(branchEl) {
92
+ const store = this.treesStore.store
93
const getAttrPath = (el) => {
94
const pathStr = el.getAttribute('data-tree-node-path')
95
if (pathStr) {
@@ -114,6 +115,9 @@ export default {
114
115
let index = 0
116
for (const {value: el, index: index2} of hp.iterateAll(branchEl.parentElement.children)) {
117
if (hp.hasClass(el, 'tree-branch') || hp.hasClass(el, 'tree-placeholder')) {
118
+ if (el === store.dragBranchEl) {
119
+ continue
120
+ }
121
if (el === branchEl) {
122
break
123
}
0 commit comments