phphe/vue-draggable-nested-tree

Remove parent node, keep children

ben-roth opened this issue · 2 comments

Is there a way to delete a parent node but keep all the children? If the parent is deleted I'd expect that the children just rise up 1 level.

phphe commented

node.parent.children.push(...node.children)

sweet thank you!