Skip to content

drag-drop: Dropping into nested ChildList #14093

Closed
@ked1

Description

@ked1

Bug, feature request, or proposal:

Bug, Feature depending on the expectation, which isn't totally clear in this case.

I would tend to say, it is a bug, because my use case seams to be quite common.

What is the expected behavior?

It should be possible to drag and drop from a parent list into a nested child list.

What is the current behavior?

No placeholder is displayed in the child list and the received container in the drop event method is always the parent list. The placeholder moves only in the parent list, which is consistent to the described drop event data.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-dragdrop-from-parent-to-nested-childlist
Drag parent item into the subitem list.

(From subitem list to parent list works correctly)

What is the use-case or motivation for changing an existing behavior?

We have a component to configure menu structure by drag and drop. It should be possible to move menu items to a sub menu.

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

@angular/cdk 7.0.3

Is there anything else we should know?

In our use-case we have only one element with a child list, which could be possible to solve with the current implementation assuming it is a bug. I'm struggling by the imagination with multiple child lists according to the concept with template variables.

Metadata

Metadata

Assignees

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