bug(Button & Table): Button inside table with sticky column overlaps
- 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
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
Beitragsleitfaden
Rechercherichtung
Beginne mit der Angular Material 19 StackBlitz-Reproduktion, insbesondere mit src/example/table-sticky-columns-example.html und src/example/table-sticky-columns-example.ts. Führe sie in Firefox aus und scrolle horizontal, um den Button über der fixierten Spalte zu beobachten; fertig ist es, wenn der Button ausgeblendet wird, sobald er den sichtbaren Tabellenbereich verlässt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100