Browse Source

#1143: + additional parent check

pull/1191/head
RubaXa 7 years ago
parent
commit
1f7036c6c3
  1. 6
      Sortable.js

6
Sortable.js

@ -643,8 +643,10 @@
// #1143: IFrame support workaround // #1143: IFrame support workaround
_nextTick(function () { _nextTick(function () {
rootEl.insertBefore(cloneEl, dragEl); if (dragEl && (dragEl.parentNode === rootEl)) {
_dispatchEvent(_this, rootEl, 'clone', dragEl); rootEl.insertBefore(cloneEl, dragEl);
_dispatchEvent(_this, rootEl, 'clone', dragEl);
}
}); });
} }

Loading…
Cancel
Save