angular / angular/components

cdkDropList events not triggered within a mat-table row

Abierto
#15,949 6 comentarios 1 reacción 0 asignados Ver en GitHub
area: cdk/drag-drop area: material/table feature P4
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

#### What is the expected behavior?
When the table row is set to cdkDropList it should treat cdkDrag items within the row as list items, reordering where necessary and triggering cdkDropListDropped on release

#### What is the current behavior?
mat-header-cells with the cdkDrag property inside a cdkDropList mat-header-row are behaving as if they are normal cdkDrag items without a cdkDropList.

#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-3x3fbt

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
9.1.3

#### Is there anything else we should know?
Similar issue: https://github.com/angular/components/issues/13770

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la reproducción vinculada en StackBlitz e inspecciona cómo interactúan cdkDropList y cdkDrag dentro de una fila de encabezado de mat-table. Compara el comportamiento con el issue similar #13770 y verifica si la fila trata los arrastres de mat-header-cell como elementos de la lista. Se considera terminado cuando la reordenación funciona y cdkDropListDropped se dispara al soltar.

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
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.