Browse Source

#171: + preventDefault

pull/177/head
RubaXa 10 years ago
parent
commit
c5b305011d
  1. 4
      Sortable.js

4
Sortable.js

@ -195,6 +195,7 @@
if (typeof filter === 'function') { if (typeof filter === 'function') {
if (filter.call(this, evt, target, this)) { if (filter.call(this, evt, target, this)) {
_dispatchEvent(originalTarget, 'filter', target, el, startIndex); _dispatchEvent(originalTarget, 'filter', target, el, startIndex);
evt.preventDefault();
return; // cancel dnd return; // cancel dnd
} }
} }
@ -208,7 +209,8 @@
} }
}); });
if (filter.length) { if (filter) {
evt.preventDefault();
return; // cancel dnd return; // cancel dnd
} }
} }

Loading…
Cancel
Save