-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/tree
Description
Reproduction
https://stackblitz.com/edit/mat-tree-flat-data-source-bug?file=src/app/tree-flat-overview-example.ts
Steps to reproduce:
- Try to initialize the data in the constructor
- Run the app
Expected Behavior
The MatTreeFlatDataSource
accepts an optional argument initialData
. I would expect the data sorce to be properly initialized when set in the constructor.
initialData: T[] = []) { |
Actual Behavior
Tree renders as if data is empty
Environment
- Angular: 11
- CDK/Material: 11
- Browser(s): latest chrome
- Operating System (e.g. Windows, macOS, Ubuntu): windows
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/tree