bug(mat-tab-group): empty space in tab-group after last tab deletion
- 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?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
In certain conditions when removing tab the blank space remains.
### Reproduction
Can be reproduced on angular components demo page: https://material.angular.io/components/tabs/examples#tab-group-dynamic
https://youtu.be/LAtw54i27wE
Steps to reproduce:
1. Create many tabs, paggination buttons must be visible
2. Scroll to the last tab
3. Delete it
### Expected Behavior
Deleted tab disappears and whole tab grup is scrolled to fill blank space
### Actual Behavior
Deleted tab disappears blank space remains.
### Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự cố trong ví dụ tab-group động của Angular Material, làm theo các bước được liệt kê và video. Kiểm tra hành vi của tab-group khi xóa tab cuối cùng sau khi cuộn; hoàn tất khi tab đã xóa biến mất và nhóm tab còn lại cuộn để loại bỏ khoảng trống.
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
- 45/100