Skip to content

bug(Drag&n&Drop): Data from dropped item is undefined #19160

@danyil-hryhoriev

Description

@danyil-hryhoriev

Reproduction

Use StackBlitz to reproduce your issue (forked from documentation examples and added only console.log): https://stackblitz.com/edit/angular-trx3ff?file=src/app/cdk-drag-drop-connected-sorting-group-example.ts

Steps to reproduce:

  1. Try to receive data form dragged item in the event

Expected Behavior

What behavior were you expecting to see?
event.item.data returns data that attached to the item

Actual Behavior

What behavior did you actually see?
event.item.data is undefined

Environment

  • Angular:9+
  • CDK/Material:9+
  • Browser(s):All
  • Operating System (e.g. Windows, macOS, Ubuntu): MacOs

Screenshot 2020-04-23 at 22 13 54

I will be grateful for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions