Skip to content

Commit

Permalink
Issue SortableJS#2093 remove ID from the cloned element prior to addi…
Browse files Browse the repository at this point in the history
…ng to the DOM.

We should not create a duplicate CSS ID.
  • Loading branch information
vanboom authored Oct 19, 2021
1 parent daaefed commit 840f9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
pluginEvent('setupClone', this);
if (!Sortable.eventCanceled) {
cloneEl = clone(dragEl);

cloneEl.removeAttribute("id");
cloneEl.draggable = false;
cloneEl.style['will-change'] = '';

Expand Down

0 comments on commit 840f9ae

Please sign in to comment.