Vue.Draggable icon indicating copy to clipboard operation
Vue.Draggable copied to clipboard

Uncaught TypeError: Cannot read property 'nextSibling' of undefined #538

Open thanhbinh0995 opened this issue 3 years ago • 1 comments

Please change function

function insertNodeAt(fatherNode, node, position) { const refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling; fatherNode.insertBefore(node, refNode); } to ` function insertNodeAt(fatherNode, node, position) { const refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1] ? fatherNode.children[position - 1].nextSibling : null; if (fatherNode) { fatherNode.insertBefore(node, refNode); }
}

`

thanhbinh0995 avatar Nov 10 '21 11:11 thanhbinh0995

This error is still existed https://github.com/SortableJS/Vue.Draggable/issues/538

Hi @David-Desmaisons , can you take a look this issue?

thanhbinh0995 avatar Nov 10 '21 11:11 thanhbinh0995