bug(Button & Table): Button inside table with sticky column overlaps
- 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
Hello,
When placing a mat-button inside a table cell, it appears above the sticky columns instead of being clipped or hidden like the rest:
https://github.com/user-attachments/assets/dd355abc-e352-4db7-8a7c-7bdea2d7dfb3
This issue is reproducible with:
- Angular Material 15: https://stackblitz.com/edit/3p4mdjwq?file=src%2Fapp%2Ftable-sticky-columns-example.html
- Angular Material 19: https://stackblitz.com/edit/dcghq85p?file=src%2Fexample%2Ftable-sticky-columns-example.html,src%2Fexample%2Ftable-sticky-columns-example.ts,package.json
I haven't tested with other versions.
Thanks!
### Reproduction
StackBlitz link: https://stackblitz.com/edit/dcghq85p?file=src%2Fexample%2Ftable-sticky-columns-example.html,src%2Fexample%2Ftable-sticky-columns-example.ts,package.json
Steps to reproduce:
1. Scroll horizontally
### Expected Behavior
The button should be hidden when scrolled out the visible area.
### Actual Behavior
The button appears above the sticky columns.
### Environment
- Angular: 19
- CDK/Material: 19
- Browser(s): Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Guía de contribución
Línea de trabajo
Comienza con la reproducción de Angular Material 19 en StackBlitz, especialmente con src/example/table-sticky-columns-example.html y src/example/table-sticky-columns-example.ts. Ejecútala en Firefox y desplázate horizontalmente para observar el botón sobre la columna fija; estará terminado cuando el botón se oculte al salir del área visible de la tabla.
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
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100