Skip to content

Commit

Permalink
+ dev
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed May 25, 2017
2 parents f35d81b + a304be9 commit c628c53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,11 +894,11 @@
!options.dropBubble && evt.stopPropagation();
}

ghostEl && ghostEl.parentNode.removeChild(ghostEl);
ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);

if (rootEl === parentEl || Sortable.active.lastPullMode !== 'clone') {
// Remove clone
cloneEl && cloneEl.parentNode.removeChild(cloneEl);
cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
}

if (dragEl) {
Expand Down
Loading

0 comments on commit c628c53

Please sign in to comment.