bug(MatMenu): dropdown with menu items pops over menu trigger when there's a scroll bar in the dropdown
- 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ả
#### Reproduction
Steps to reproduce:
1. Go to the following StackBlitz URL https://stackblitz.com/edit/angular-xcgrfw
2. Click on the "Menu" button
3. Notice how menu items pop over the "Menu" button
#### Expected Behavior
The expected behaviour is for the menu dropdown to be positioned below the "Menu" button regardless of the number of menu items as in the following example https://stackblitz.com/angular/mnygrqvpejk?file=src%2Fapp%2Fmenu-overview-example.ts
#### Actual Behavior
The dropdown with menu items pops over the "Menu" button when there's so many menu items that the menu becomes scrollable
#### Environment
- Angular: 9.1.11
- CDK/Material: 9.2.4
- Browser(s): Google Chrome 83.0.4103.97
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10
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ố với ví dụ StackBlitz được liên kết, sau đó so sánh hành vi MatMenu của ví dụ đó với ví dụ menu Angular được liên kết. Truy vết điểm vào của việc định vị menu chịu trách nhiệm cho các dropdown có thể cuộn và xác minh rằng dropdown vẫn nằm bên dưới trigger khi nó chứa đủ mục để cần cuộn.
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
- 35/100