From 45f9618bc7bed4611c277002f241f21c9580b38c Mon Sep 17 00:00:00 2001 From: Lebedev Konstantin Date: Thu, 16 Feb 2017 17:44:50 +0300 Subject: [PATCH] #1025: clean clone --- Sortable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sortable.js b/Sortable.js index 36cff72..9d28a39 100644 --- a/Sortable.js +++ b/Sortable.js @@ -628,7 +628,13 @@ if (activeGroup.checkPull(this, this, dragEl, evt) == 'clone') { cloneEl = _clone(dragEl); + + cloneEl.draggable = false; + cloneEl.style['will-change'] = ''; + _css(cloneEl, 'display', 'none'); + _toggleClass(dragEl, this.options.chosenClass, false); + rootEl.insertBefore(cloneEl, dragEl); _dispatchEvent(this, rootEl, 'clone', dragEl); }