angular / angular/components

bug(DragDrop): Drag&Drop not working inside MatDialog and when the page's height is too big

Đang mở
#22,709 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: cdk/drag-drop area: cdk/overlay P3
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

Here is a reproduction. There is a button down there which opens a dialog with draggable items.

https://stackblitz.com/edit/angular-9-material-starter-lktwr2?file=src/app/app.component.css

#### Expected Behavior

Drag&Drop should work.

#### Actual Behavior

I have a project where I have a table with a lot of items, and when I scroll down (for example to the middle of the table, page height ~is 4000px), and by clicking on a row I open a dialog where I want to use drag&drop and where it doesn't work (as in the reproduction). But if I click on a row which is at the beginning of the table, drag&drop is working fine.

#### Environment

In the reproduction I used Angular 9, but I see this in Angular 11 as well. Not sure if this fixed in 12th version.

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, đặc biệt là src/app/app.component.css, và tái hiện lỗi kéo-thả bên trong hộp thoại sau khi cuộn trang. So sánh hành vi ở đầu và giữa bảng; hoàn thành khi các mục có thể kéo hoạt động trong MatDialog bất kể chiều cao của trang và bản tái hiện vẫn hoạt động đúng trong Angular 9 và 11.

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/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.