Skip to content

Commit c1f6cf5

Browse files
committed
#308: * allow drop text
1 parent 5c4e3dc commit c1f6cf5

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Sortable.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,6 @@
530530
isOwner = (activeGroup === group),
531531
canSort = options.sort;
532532

533-
if (!dragEl) {
534-
return;
535-
}
536-
537533
if (evt.preventDefault !== void 0) {
538534
evt.preventDefault();
539535
!options.dragoverBubble && evt.stopPropagation();
@@ -754,8 +750,10 @@
754750
var type = evt.type;
755751

756752
if (type === 'dragover' || type === 'dragenter') {
757-
this._onDragOver(evt);
758-
_globalDragOver(evt);
753+
if (dragEl) {
754+
this._onDragOver(evt);
755+
_globalDragOver(evt);
756+
}
759757
}
760758
else if (type === 'drop' || type === 'dragend') {
761759
this._onDrop(evt);

0 commit comments

Comments
 (0)