可拖动/可嵌套嵌套问题(onDragStart中的错误)

时间:2019-05-29 08:02:02

标签: javascript vuejs2 drag-and-drop sortablejs vuedraggable

我想同时拖动同一行或不同行中的项目行以及项目本身。它一直有效,直到我尝试移动一行的最后一项,然后导致错误。

jsfiddle: https://jsfiddle.net/lexixon/nf97erqx/64/

错误:

Uncaught TypeError: Cannot read property 'element' of null
    at VueComponent.onDragStart (vuedraggable.js:380)
    at mt.<anonymous> (vuedraggable.js:37)
    at Ct (Sortable.min.js:3)
    at mt._dragStarted (Sortable.min.js:3)

Uncaught TypeError: Cannot read property 'index' of null
    at VueComponent.onDragRemove (vuedraggable.js:403)
    at mt.<anonymous> (vuedraggable.js:37)
    at Ct (Sortable.min.js:3)
    at mt._onDrop (Sortable.min.js:3)
    at mt.handleEvent (Sortable.min.js:3)

0 个答案:

没有答案