Nestable2 icon indicating copy to clipboard operation
Nestable2 copied to clipboard

Removing or replacing element while preserving children

Open predaioan opened this issue 6 years ago • 1 comments

Currently, from what I see, removing an element with children will delete the item together with all its children.

This behavior is counter intuitive in many real life scenarios where removing the parent would allow the children to "move one level up" to the removed element's level (that is becoming children of the removed element's parent or the root if that's the case) . For example:

Element 1
    Child 1.1
    Child 2.1
Element 2

after removinv Element 1 would need to turn into:

FormerChild 1.1
FormerChild 2.1
Element 2

Did anyone address this or has seen an example solution somehwere?

predaioan avatar Apr 12 '18 11:04 predaioan

I opened a pull request with the functionality you asked for

mrgingles avatar May 02 '18 17:05 mrgingles