Browse Source

#489: * Fixed 'clone'

pull/496/head
RubaXa 10 years ago
parent
commit
304c04fd2d
  1. 3
      Sortable.js
  2. 2
      Sortable.min.js

3
Sortable.js

@ -573,7 +573,7 @@
target = _closest(evt.target, options.draggable, el);
dragRect = dragEl.getBoundingClientRect();
parentEl = target && target.parentNode; // actualization
if (revert) {
_cloneHide(true);
@ -725,6 +725,7 @@
if (rootEl !== parentEl) {
newIndex = _index(dragEl);
if (newIndex != -1) {
// drag from one list and drop into another
_dispatchEvent(null, parentEl, 'sort', dragEl, rootEl, oldIndex, newIndex);

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save