Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing or replacing element while preserving children #105

Open
predaioan opened this issue Apr 12, 2018 · 1 comment
Open

Removing or replacing element while preserving children #105

predaioan opened this issue Apr 12, 2018 · 1 comment

Comments

@predaioan
Copy link

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 predaioan changed the title Removing or replacing Removing or replacing element while preserving children Apr 12, 2018
@mrgingles
Copy link

I opened a pull request with the functionality you asked for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants