Skip to content

bug(DragDrop): Uncaught TypeError: Cannot read properties of null (reading 'removeEventListener') when dragging and dropping items synced with API #23655

Closed
@YugasVasyl

Description

@YugasVasyl

Reproduction

I have found the similar (same?) unresolved issue here
#18628
with reproduction example.
In my case drag&drop synced with BE via API, so it's hard to reproduce, but sometimes when user drags and drops items fast it errors with
Uncaught TypeError: Cannot read properties of null (reading 'removeEventListener')
It doesn't affect functionality, but I don't want to see those errors in the console and Sentry.

Environment

  • Angular: 12.2.2
  • CDK/Material: 12.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/drag-drop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions