fix: prevent default behavior only when drag handle id is not 'drag-handle'

This commit is contained in:
Kiril Videlov 2023-11-30 15:35:22 +01:00 committed by Kiril Videlov
parent e9828a605e
commit 2046df3a43

View File

@ -91,6 +91,7 @@
if (dragHandle.id != 'drag-handle') {
// We rely on elements with id `drag-handle` to initiate this drag
e.preventDefault();
return;
}
clone = cloneNode(e.target);
document.body.appendChild(clone);