Skip to content

[bug] Uncaught TypeError: Cannot read properties of null #2176

@spixy

Description

@spixy

To Reproduce

const onMove = (event) => {
  if (needToCancel) return false;
}

needToCancel = false;
Start dragging and moving.
After one second, set needToCancel = true.
Get:

Uncaught TypeError: Cannot read properties of null (reading 'Sortable1658316303374')
at HTMLDocument._checkOutsideTargetEl2

Uncaught TypeError: Cannot read properties of null (reading 'Sortable1658316303374')
at completed
at Sortable._onDragOver
at Sortable.handleEvent

Expected behavior

No errors.

Information

sortablejs = 1.14.0
vuedraggable = 4.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions