angular / angular/components

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

Ouverte
#22,709 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
area: cdk/drag-drop area: cdk/overlay P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la reproduction StackBlitz liée, en particulier src/app/app.component.css, et reproduisez l’échec du glisser-déposer dans la boîte de dialogue après avoir fait défiler la page. Comparez le comportement en haut et au milieu du tableau ; c’est terminé lorsque les éléments déplaçables fonctionnent dans le MatDialog quelle que soit la hauteur de la page et que la reproduction se comporte toujours correctement dans Angular 9 et 11.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.