Browse Source

#538: * preventDefault only if 'active'

gh-pages
RubaXa 9 years ago
parent
commit
44c2b68758
  1. 6
      Sortable.js

6
Sortable.js

@ -665,8 +665,10 @@
this._offUpEvents();
if (evt) {
evt.preventDefault();
!options.dropBubble && evt.stopPropagation();
if (Sortable.active) {
evt.preventDefault();
!options.dropBubble && evt.stopPropagation();
}
ghostEl && ghostEl.parentNode.removeChild(ghostEl);

Loading…
Cancel
Save