Closed
Description
In the example of nested Tree ,for the node without children there should't be matTreeNodeToggle tag , it is like this :
<mat-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
{{node.name}}
but it should be like :
<mat-tree-node *matTreeNodeDef="let node" >
{{node.name}}
by having this tag, everytime you click on a node without children , state of treeControl.isExpanded(node) changes to false and true ,which is incorrect . in the example it doesn't create problem but in real case if you want to add more logic ,it creates problem.