[bug] Uncaught TypeError: Cannot read properties of null
Author: spixyCreated Jul 20, 2022Updated Mar 13, 2026
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
Source: SortableJS/Sortable