Browse Source

forcing removal of draggable attribute on destroy

pull/12/head
Mark DiMarco 11 years ago
parent
commit
ca2c17a5b0
  1. 5
      Sortable.js

5
Sortable.js

@ -378,6 +378,11 @@
_off(el, 'dragover', this._onDragOver);
_off(el, 'dragenter', this._onDragOver);
//remove draggable attributes
Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function(el) {
el.removeAttribute('draggable');
});
touchDragOverListeners.splice(touchDragOverListeners.indexOf(this._onDragOver), 1);
this._onDrop();

Loading…
Cancel
Save