-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
Description
Is this a regression?
I do not know.
The previous version in which this bug was not present was
I do not know.
Description
Data is not sorted in children's table when triggering the children's sorts to work in sync with the parent table's sort.
Reproduction
Steps to reproduce:
- Open https://stackblitz.com/edit/angular-yzr1r9-jtjxz6?file=src/app/table-sorting-example.ts
- Click on the first 'Name' column on the top 2 times (sort should be active: 'name', direction: 'desc')
- Verify that the parent table's rows are sorted correctly (in desc alphabetical order)
- And also see that the children's table sort arrow points to the good direction
- Also also see that the data is not sorted in the children's table (despite point 4.)
- Verify that the children's data sorted only if the children's table header is clicked directly
Note: children's headers are not visible in the real use-case, it is visible now only for the demo.
Expected Behavior
Data should be sorted in all tables.
Actual Behavior
Data is not triggered to be sorted.
Environment
- Angular: 14
- CDK/Material: 14
- Browser(s): Chrome latest
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
See demo.
Metadata
Metadata
Assignees
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team