Skip to content

Commit

Permalink
(fix) Issue SortableJS#1119
Browse files Browse the repository at this point in the history
  • Loading branch information
maurice-g committed Sep 14, 2018
1 parent 96a5fec commit 8a597d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,8 @@
_cloneHide(activeSortable, isOwner);

if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt) !== false) {
if (!dragEl.contains(el)) {
// Fix:https://github.com/RubaXa/Sortable/issues/1119
if (!dragEl.contains(el) && el.children.length === 0 || el.children.length === 1) {
el.appendChild(dragEl);
parentEl = el; // actualization
}
Expand Down
Loading

0 comments on commit 8a597d0

Please sign in to comment.