angular / angular/components

bug(table/button): Z-index and scroll issues in a sticky table

Đang mở
#27,246 2 bình luận 6 reaction 0 người được giao Xem trên GitHub
area: material/table P2 regression
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với bản tái hiện StackBlitz được liên kết và so sánh hành vi của nó trong Angular/CDK/Material 14 và 15 đối với một mat-table sticky có một cột cố định và một cột nút. Xác nhận rằng nội dung có thể cuộn bị ẩn bên dưới cột sticky, cột cố định vẫn được cố định và nút không còn xuất hiện phía trên cột đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.