Skip to content

[Drag and Drop] cdkDragHandle ignored when it is placed inside a child component #13784

@adraeth

Description

@adraeth

Bug, feature request, or proposal:

Bug

What is the expected behavior?

cdkDragHandle is correctly bound to its cdkDrag and it is the only element which allows cdkDrag to be moved, even when cdkDragHandle is specified inside a child component

What is the current behavior?

When cdkDragHandle is not placed directly in the same component as cdkDrag, but in a child component, it won't be bound to its cdkDrag. The entire cdkDrag can be used to move the element, not only the cdkDragHandle.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-ckyzbp

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

Material 7.0.1

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