diff --git a/Sortable.js b/Sortable.js index 5d10475..44a02e5 100644 --- a/Sortable.js +++ b/Sortable.js @@ -372,8 +372,10 @@ this._loopId = setInterval(this._emulateDragOver, 150); } else { - dataTransfer.effectAllowed = 'move'; - options.setData && options.setData.call(this, dataTransfer, dragEl); + if (dataTransfer) { + dataTransfer.effectAllowed = 'move'; + options.setData && options.setData.call(this, dataTransfer, dragEl); + } _on(document, 'drop', this); }