Skip to content

cdk Drag and Drop: item cannot be dropped in empty list #16325

@duck74

Description

@duck74

What are you trying to do?

I built a timeline where you can move items between the rows. However, if the row is empty, then I am not able to add an item there anymore. The CSS is quite intense and I am using (nested) css-grids, so maybe thats the reason, but maybe I have overlooked something.

When I use the same data and approach with the example code and css provided in the documentation, it works as expected.

Reproduction

The following stackblitz shows my approach:
https://stackblitz.com/edit/angular-etrqvm

Steps to reproduce:

  1. Move all items from one list into the other list
  2. try to move one item back into the empty list

Environment

  • Angular: 8.0.1
  • CDK/Material: 8.0.1
  • Browser(s): Chrome (latest version)
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    troubleshootingThis issue is not reporting an issue, but just asking for help

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions