-
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/drag-droparea: material/table
Description
Reproduction
I believe that #21403 (released in 11.0.4) introduced this bug. I have included the same StackBlitz, once using 11.0.3, and once using 11.0.4, to demonstrate the bug that was introduced.
Steps to reproduce:
- Using "@angular/material": "^11.0.4" or greater (I have also tested with 11.2.12 and 12.0.1 and the bug persists)
- Set up a mat-table using
cdkDrag
on themat-header-cell
's - On the
mat-header-row
, set*matHeaderRowDef="displayedColumns; sticky: true"
- Drag the column header and observe the styling of the header as it is being dragged
StackBlitz of issue: https://mat-table-sticky-after.stackblitz.io
Expected Behavior
The expected behavior is that the styling of the header remains next to the pointer as it is being dragged. This is the behavior PRIOR to 11.0.4
.
See this StackBlitz of 11.0.3
for the expected behavior: https://mat-table-sticky-before.stackblitz.io
Actual Behavior
The behavior in ^11.0.4
is that the styling is shifted: https://mat-table-sticky-after.stackblitz.io
Environment
- Angular: >= 11.0.4
- CDK/Material: >= 11.0.4
- Browser(s): Chrome 90.0.4430.212
- Operating System (e.g. Windows, macOS, Ubuntu): macOS 11.2.3
amkoehler
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/drag-droparea: material/table