bug(MatTree): expandAll() only expand the first level #29865
Labels
area: material/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
17.x
Description
The method
expandAll()
of MatTree expands only the first level of a deeply nested tree. On deprecated MatTreeControl, the same method was able to expand the entire tree without problems.Note: the deprecated control had an advantage that the expansion state could be manipulated before even the view was initialized, but that is another topic.
WORKAROUND:
Reproduction
StackBlitz link:
Steps to reproduce:
ngAfterViewInit
callback.Expected Behavior
MatTree's expandAll() should expand all nodes.
Actual Behavior
Only the first level nodes are expanded.
Environment
The text was updated successfully, but these errors were encountered: