diff --git a/Sortable.js b/Sortable.js index 7e6c502..dba2f74 100644 --- a/Sortable.js +++ b/Sortable.js @@ -471,10 +471,8 @@ evt.preventDefault(); evt.stopPropagation(); - if( ghostEl ){ - cloneEl.parentNode.removeChild(cloneEl); - ghostEl.parentNode.removeChild(ghostEl); - } + cloneEl.parentNode.removeChild(cloneEl); + ghostEl && ghostEl.parentNode.removeChild(ghostEl); if( dragEl ){ _disableDraggable(dragEl);