-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(tree): tree does not initialize when data is set in constructor #22282
Labels
area: cdk/tree
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
meblum
changed the title
bug(COMPONENT): TITLE
bug(tree): tree does not initialize when data is set in constructor
Mar 18, 2021
jelbourn
added
area: cdk/tree
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
and removed
needs triage
This issue needs to be triaged by the team
labels
Mar 18, 2021
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Mar 25, 2021
The `MatTreeFlatDataSource` has an `initialData` parameter which doesn't work, because it only assigns the data to one of the three streams used to render the tree. These changes also make some underscored properties private. Fixes angular#22282.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Mar 29, 2021
The `MatTreeFlatDataSource` has an `initialData` parameter which doesn't work, because it only assigns the data to one of the three streams used to render the tree. These changes also make some underscored properties private. Fixes angular#22282.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Mar 30, 2021
The `MatTreeFlatDataSource` has an `initialData` parameter which doesn't work, because it only assigns the data to one of the three streams used to render the tree. These changes also make some underscored properties private. Fixes angular#22282.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Apr 7, 2021
The `MatTreeFlatDataSource` has an `initialData` parameter which doesn't work, because it only assigns the data to one of the three streams used to render the tree. These changes also make some underscored properties private. Fixes angular#22282.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: cdk/tree
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Reproduction
https://stackblitz.com/edit/mat-tree-flat-data-source-bug?file=src/app/tree-flat-overview-example.ts
Steps to reproduce:
Expected Behavior
The
MatTreeFlatDataSource
accepts an optional argumentinitialData
. I would expect the data sorce to be properly initialized when set in the constructor.components/src/material/tree/data-source/flat-data-source.ts
Line 144 in e99ca0a
Actual Behavior
Tree renders as if data is empty
Environment
The text was updated successfully, but these errors were encountered: