Skip to content

DropList created with DragDrop.createDropList is broken #16961

Closed
@tornaia

Description

@tornaia

Reproduction

https://stackblitz.com/edit/angular-8-drag-and-drop-dynamic-components

Steps to reproduce:

  1. Click on the add item a few times
  2. Try to drag-and-drop these items

Expected Behavior

The order of the items can be changed

Actual Behavior

The order of the items remains always the same and the "dropped" event previousIndex and currentIndex properties have always the same value.

Environment

  • Angular: 8.2.3
  • CDK/Material: 8.1.4
  • Browser(s): Chrome 76 (but its not a browser specific issue)
  • Operating System: Windows

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions