Skip to content

Commit

Permalink
#308: * allow drop text
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Apr 11, 2015
1 parent 5c4e3dc commit c1f6cf5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,6 @@
isOwner = (activeGroup === group),
canSort = options.sort;

if (!dragEl) {
return;
}

if (evt.preventDefault !== void 0) {
evt.preventDefault();
!options.dragoverBubble && evt.stopPropagation();
Expand Down Expand Up @@ -754,8 +750,10 @@
var type = evt.type;

if (type === 'dragover' || type === 'dragenter') {
this._onDragOver(evt);
_globalDragOver(evt);
if (dragEl) {
this._onDragOver(evt);
_globalDragOver(evt);
}
}
else if (type === 'drop' || type === 'dragend') {
this._onDrop(evt);
Expand Down

0 comments on commit c1f6cf5

Please sign in to comment.