bug(table/button): Z-index and scroll issues in a sticky table
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
14
### Description
I have two bugs with a sticky mat-table and not with table with mat-table directive :
- The button's z-index has changed since version 15.0.0. The sticky and button column are both 1, which makes the button visible (but not the table background), a Workaround st z-index to 2 on sticky column.
- When I have several columns in a table with a fixed column, the fixed column also moves.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/tu9ax3
### Expected Behavior
That anything that scrolls under the sticky column is not visible and the sticky column is real sticky.
### Actual Behavior
The button is above the sticky column, and the sticky column is not really sticky.
### Environment
- Angular: 15 - 16
- CDK/Material: 15 - 16
- Browser(s): Chrome Lastest version
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 11
Beitragsleitfaden
Rechercherichtung
Beginne mit der verlinkten StackBlitz-Reproduktion und vergleiche ihr Verhalten in Angular/CDK/Material 14 und 15 für eine sticky mat-table mit einer fixierten Spalte und einer Button-Spalte. Bestätige, dass der scrollende Inhalt unter der sticky Spalte verborgen wird, die fixierte Spalte fixiert bleibt und der Button nicht mehr darüber erscheint.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100