Skip to content

bug(CDK): The cursor should always be forbidden for dragging disabled items. #27242

Closed
@zhonglin94

Description

@zhonglin94

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The cursor should always be forbidden for dragging disabled items.

Media1.mp4

Reproduction

Reproduce link: https://material.angular.io/cdk/drag-drop/overview#disabled-dragging
Steps to reproduce:

  1. Go to the reproduce link(the disabled dragging section)
  2. Drag the disabled item
  3. The cursor is the pointer for the first time
  4. Drag the disabled item again
  5. The cursor becomes forbidden

Expected Behavior

The cursor should always be forbidden for dragging disabled items.

Actual Behavior

The cursor is a pointer when dragging the dragging disabled items sometimes.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: cdk/drag-dropdocsThis issue is related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions