bug(material/tree): node added with insertNode remains visible after dataSource is updated #29349
Labels
area: cdk/tree
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I'm using Material Tree and
insertNode
method to create a node inside the tree menu.Reproduction
StackBlitz link
Steps to reproduce:
a
to add a new node usinginsertNode
methodr
to restore the data to the initial state.Expected Behavior
I expect that when the
data
object is populated, only the nodes passed in this array should be on the interface.Actual Behavior
A ghost node is added.
Environment
This is also in v18.
The text was updated successfully, but these errors were encountered: