Skip to content

CdkDrag: cdkDragHandleDisabled does not work if it is set on component instantiation #16642

Closed
hrueger/AGLight
#112
@skrtheboss

Description

@skrtheboss

Reproduction

Go to StackBlitz - Handle Disabled Example.
The initial state for cdkDragHandleDisabled is disabled but dragging works, only after clicking on enable and after on disable the handle is actually disabled.

Expected Behavior

The handle should be disabled at the beginning.

Actual Behavior

The handle is not disabled at the beginning.

Environment

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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions