Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
If a node is expanded but not selected and child nodes are added to it by addNodes or moveNodes, the node will be collapsed when preventTargetExpand is true. The expected behavior would be to leave the node expanded or collapsed based on it's current state.
I modified my sample to have the ability of adding a node to a given parent ID.
https://qf1afn-frwsh2ah.stackblitz.io
Expand out a node and then enter that id as the parent ID and click add node to parent. The parent node will collapse.
I'm currently working around this by testing the parent nodes.expanded property and setting the preventTargetExpand based off that. When