SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.79k stars 3.7k forks source link

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

Open spixy opened 2 years ago

spixy commented 2 years ago

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

aoxiangsky commented 1 year ago

I encountered the same problem, did you solve it, how did you solve it?

andydev404 commented 12 months ago

Same here