Skip to content

Commit 840f9ae

Browse files
authored
Issue #2093 remove ID from the cloned element prior to adding to the DOM.
We should not create a duplicate CSS ID.
1 parent daaefed commit 840f9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
924924
pluginEvent('setupClone', this);
925925
if (!Sortable.eventCanceled) {
926926
cloneEl = clone(dragEl);
927-
927+
cloneEl.removeAttribute("id");
928928
cloneEl.draggable = false;
929929
cloneEl.style['will-change'] = '';
930930

0 commit comments

Comments
 (0)