bug(mat-table): Re-orderable sticky columns become un-sticky if you start dragging, abort the drag, and then scroll
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz y su punto de entrada src/app/table-sticky-header-example.html. Reproduce en Chrome el arrastre cancelado seguido del desplazamiento y, después, rastrea el comportamiento de la columna sticky y de la reordenación de la tabla. El trabajo estará terminado cuando el arrastre cancelado ya no provoque que el encabezado seleccionado deje de ser sticky.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100