From 840f9aef8452e2944e6984d49965bcc86ed96863 Mon Sep 17 00:00:00 2001 From: Don Date: Tue, 19 Oct 2021 14:03:18 -0500 Subject: [PATCH] Issue #2093 remove ID from the cloned element prior to adding to the DOM. We should not create a duplicate CSS ID. --- src/Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sortable.js b/src/Sortable.js index 431679173..6d3d6c670 100644 --- a/src/Sortable.js +++ b/src/Sortable.js @@ -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'] = '';