You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Sort triggered by the method onListDrop does sort the table correctly and the sort indicator of the table-header is not shown at the weight (drag handle) column.
Actual Behavior
Sorting does not work with calling MatSort#sort. With two calls, however, it does. The sorting indicator is removed from the "Name" column, but it is not added to the "Weight" column.
The sort order does not seem to work either. The default sort order is "asc". However, if you set "asc" when calling MatSort#sort , the sort order changes.
Environment
Angular:
CDK/Material: 8.2.1
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu):
The text was updated successfully, but these errors were encountered:
ChrisWun
changed the title
Programmatic triggering of sorting for mat-table with cdkDropList and matSort does not work correctly
Programmatic triggering of sort for mat-table with cdkDropList and matSort does not work correctly
Feb 24, 2020
andrewseguin
changed the title
Programmatic triggering of sort for mat-table with cdkDropList and matSort does not work correctly
bug(table): Programmatic triggering of sort with cdkDropList does not work
May 26, 2020
Reproduction
Stackblitz: https://stackblitz.com/edit/angular-material-dllyke?file=app/app.component.html
Steps to reproduce:
Expected Behavior
The Sort triggered by the method onListDrop does sort the table correctly and the sort indicator of the table-header is not shown at the weight (drag handle) column.
Actual Behavior
Sorting does not work with calling MatSort#sort. With two calls, however, it does. The sorting indicator is removed from the "Name" column, but it is not added to the "Weight" column.
The sort order does not seem to work either. The default sort order is "asc". However, if you set "asc" when calling MatSort#sort , the sort order changes.
Environment
The text was updated successfully, but these errors were encountered: