angular / angular/components

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

Offen
#22,709 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: cdk/drag-drop area: cdk/overlay P3
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der verknüpften StackBlitz-Reproduktion, insbesondere mit src/app/app.component.css, und reproduziere den Drag-and-Drop-Fehler innerhalb des Dialogs, nachdem du die Seite gescrollt hast. Vergleiche das Verhalten am oberen und mittleren Bereich der Tabelle; fertig ist es, wenn ziehbare Elemente unabhängig von der Seitenhöhe im MatDialog funktionieren und die Reproduktion sich in Angular 9 und 11 weiterhin korrekt verhält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.