We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ce5ec commit 1b9d66eCopy full SHA for 1b9d66e
src/VueNestable.vue
@@ -306,6 +306,7 @@ export default {
306
// In some cases the drag-layer might not be at the top left of the window,
307
// we need to find, where it acually is, and incorperate the position into the calculation.
308
const elDragLayer = document.querySelector('.nestable-' + this.group + ' .nestable-drag-layer')
309
+ if (!elDragLayer) return
310
const { top: dragLayerTop, left: dragLayerLeft } = elDragLayer.getBoundingClientRect()
311
312
const elCopy = document.querySelector('.nestable-' + this.group + ' .nestable-drag-layer > .nestable-list')
0 commit comments