You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Adding a new node to the tree using the "parent" option will successfully add the new node to the tree. But when accessing the new node by for example findById or looking up the tree dataset, the parent property will be blank (parent: "").
To Reproduce
Steps to reproduce the behavior: (Also shown in attached screenshot)
Add node: this.tree.addNode({id: 'newTestNode', text: 'New Test Node', parent: 'leadership'});
Look up node: this.tree.findById('newTestNode');
Notice how newTestNode property called parent is empty. (parent: "")
Expected behavior
Parent property should be set during node creation to contain the parent id so that it can be used if needed to identify the parent.
I can easily work around this by adding a custom property to hold the parent id reference for now. However it would be nice to skip that so that i don't have multiple properties meant for holding the parent reference.
Version
ids-enterprise: 4.34.0-dev
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
Adding a new node to the tree using the "parent" option will successfully add the new node to the tree. But when accessing the new node by for example findById or looking up the tree dataset, the parent property will be blank (
parent: ""
).To Reproduce
Steps to reproduce the behavior: (Also shown in attached screenshot)
this.tree.addNode({id: 'newTestNode', text: 'New Test Node', parent: 'leadership'});
this.tree.findById('newTestNode');
parent: ""
)Expected behavior
Parent property should be set during node creation to contain the parent id so that it can be used if needed to identify the parent.
I can easily work around this by adding a custom property to hold the parent id reference for now. However it would be nice to skip that so that i don't have multiple properties meant for holding the parent reference.
Version
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
The text was updated successfully, but these errors were encountered: