bug(mat-table): Re-orderable sticky columns become un-sticky if you start dragging, abort the drag, and then scroll
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
If you create a Material Design Table with **reorderable columns** that are also **sticky**, the column headers become un-sticky if you start to reorder a column, abort, and then scroll.
StackBlitz that reproduces the issue: https://stackblitz.com/edit/angular-kyaurw?file=src/app/table-sticky-header-example.html
### Reproduction
Steps to reproduce:
1. https://stackblitz.com/edit/angular-kyaurw?file=src/app/table-sticky-header-example.html
2. Click and hold a column header and start to drag it, but release the mouse button before dropping it in a new location
3. Scroll down
4. The column header is no longer sticky (see screenshot of the issue)

### Expected Behavior
If you abort a drag/drop, the column header should still be sticky like all of the other headers.
### Actual Behavior
If you abort a drag/drop, the column header you clicked is no longer sticky.
### Environment
- Angular: 15.0.4
- CDK/Material: 15.0.4
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Beitragsleitfaden
Rechercherichtung
Beginne mit der verknüpften StackBlitz-Reproduktion und ihrem Einstiegspunkt src/app/table-sticky-header-example.html. Reproduziere den abgebrochenen Drag-Vorgang, gefolgt vom Scrollen, in Chrome und verfolge anschließend das Verhalten der Sticky-Spalte und des Neuanordnens der Tabelle. Erledigt ist die Aufgabe, wenn der abgebrochene Drag-Vorgang nicht mehr dazu führt, dass der ausgewählte Header seine Sticky-Eigenschaft verliert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100