Components: cdkDropList events not triggered within a mat-table row

Created on 3 May 2019  路  4Comments  路  Source: angular/components

What is the expected behavior?

When the table row is set to cdkDropList it should treat cdkDrag items within the row as list items, reordering where necessary and triggering cdkDropListDropped on release

What is the current behavior?

mat-header-cells with the cdkDrag property inside a cdkDropList mat-header-row are behaving as if they are normal cdkDrag items without a cdkDropList.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-3x3fbt

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

9.1.3

Is there anything else we should know?

Similar issue: https://github.com/angular/components/issues/13770

P4 cddrag-drop materiatable feature

Most helpful comment

Hi guys, I'd really need this feature to make mat-table columns reorderable. Has there been any progress with this?

see https://stackblitz.com/edit/angular-p12rek

All 4 comments

Hi guys, I'd really need this feature to make mat-table columns reorderable. Has there been any progress with this?

Hi guys, I'd really need this feature to make mat-table columns reorderable. Has there been any progress with this?

see https://stackblitz.com/edit/angular-p12rek

This is still broken in 9.1.3 but for those looking you can work around this problem in 9.1.3 by making the entire table the drop list. This seems to bypass the issue.

Has this been resolved? I am facing a very similar issue on the latest Angular v10 stack...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crutchcorn picture crutchcorn  路  3Comments

dzrust picture dzrust  路  3Comments

Hiblton picture Hiblton  路  3Comments

vitaly-t picture vitaly-t  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments