angular / angular/components

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

Abierto
#22,709 1 comentario 0 reacciones 0 asignados Ver en GitHub
area: cdk/drag-drop area: cdk/overlay P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la reproducción vinculada de StackBlitz, especialmente con src/app/app.component.css, y reproduce el fallo de arrastrar y soltar dentro del diálogo después de desplazar la página. Compara el comportamiento en la parte superior y en la parte central de la tabla; se considera terminado cuando los elementos arrastrables funcionan en el MatDialog independientemente de la altura de la página y la reproducción sigue comportándose correctamente en Angular 9 y 11.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.