Skip to content

bug(DragDrop): cdkDropListDropped fires from source rather than destination #20056

Closed
@lukejack

Description

@lukejack

Reproduction

Stackblitz link:
https://stackblitz.com/edit/angular-ivy-mvaic6

Steps to reproduce:

  1. Create 2 separate cdkDropLists
  2. Put a cdkDrag element in one of the lists
  3. Connect the lists using cdkDropListConnectedTo
  4. On both lists, attach a console.log to cdkDropListDropped, with different logged text for each container
  5. Drag the cdkDrag element from its origin cdkDropList to the other cdkDropList

Expected Behavior

The destination cdkDropList runs the console.log

Actual Behavior

The source cdkDropList runs the console.log

Environment

  • Angular: 10.0.1
  • CDK: 10.0.0, 9.2.4, and 8.2.3
  • Browser(s): Chrome and Edge

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/drag-drop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions