[错误] 抛出了 TypeError: 无法读取 null 的属性
作者: spixy创建于 2022年7月20日更新于 2026年3月13日
重现步骤 const onMove = (event) => { if (needToCancel) return false; } needToCancel = false; 开始拖动和移动。 一秒钟后,设置 needToCancel 为 true。 结果:
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
内容来源: SortableJS/Sortable