diff --git a/Sortable.js b/Sortable.js index dba2f74..09a210f 100644 --- a/Sortable.js +++ b/Sortable.js @@ -202,10 +202,6 @@ nextEl = dragEl.nextSibling; activeGroup = this.options.group; - cloneEl = dragEl.cloneNode(true); - _css(cloneEl, 'display', 'none'); - rootEl.insertBefore(cloneEl, dragEl); - dragEl.draggable = true; // Disable "draggable" @@ -244,6 +240,11 @@ _dispatchEvent(dragEl, 'start'); + + + cloneEl = dragEl.cloneNode(true); + _css(cloneEl, 'display', 'none'); + rootEl.insertBefore(cloneEl, dragEl); } },