major
nice-to-have
defect
major
defect
When using the TreeComponent, a display error occurs if the root node is hidden and a new node is created directly below that root node. The error only occurs if there are already at least two nodes below the root node.
Initial State
Malfunction
After creating another node directly under the root:
The error also occurs when you delete a node that is directly under the root.
The error is resolved after pressing F5.
Cause
The error likely lies in the method "TreeRenderer.addSubtreeUpdateActions()". Here, the "stopID" parameter is not used, and an element replacement is always performed for exactly one node (nodeID) in the tree.
Test
- Can only be tested with #23440; see the test there.