vue-draggable-nested-tree icon indicating copy to clipboard operation
vue-draggable-nested-tree copied to clipboard

How to leave the nodes closed while dragging?

Open caiokawasaki opened this issue 6 years ago • 1 comments
trafficstars

While dragging some node and it goes over some other node that is closed the node change the status to open. Is there any way to leave the node closed while dragging?

caiokawasaki avatar Dec 22 '18 15:12 caiokawasaki

like 'max level': https://github.com/phphe/vue-draggable-nested-tree/blob/master/src/examples/MaxLevel.vue change method ondrag:

ondrag(node) {
      th.depthFirstSearch(this.store.rootData.children, (childNode) => {
        this.$set(childNode, 'droppable', childNode.open)
      })
},

phphe avatar Dec 23 '18 14:12 phphe