We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4e3dc commit c1f6cf5Copy full SHA for c1f6cf5
1 file changed
Sortable.js
@@ -530,10 +530,6 @@
530
isOwner = (activeGroup === group),
531
canSort = options.sort;
532
533
- if (!dragEl) {
534
- return;
535
- }
536
-
537
if (evt.preventDefault !== void 0) {
538
evt.preventDefault();
539
!options.dragoverBubble && evt.stopPropagation();
@@ -754,8 +750,10 @@
754
750
var type = evt.type;
755
751
756
752
if (type === 'dragover' || type === 'dragenter') {
757
- this._onDragOver(evt);
758
- _globalDragOver(evt);
753
+ if (dragEl) {
+ this._onDragOver(evt);
+ _globalDragOver(evt);
+ }
759
}
760
else if (type === 'drop' || type === 'dragend') {
761
this._onDrop(evt);
0 commit comments