We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27fa2f9 commit 3b7c331Copy full SHA for 3b7c331
Sortable.js
@@ -225,7 +225,7 @@
225
fallbackClass: 'sortable-fallback',
226
fallbackOnBody: false,
227
scrollContainer: null,
228
- allowTransform:true
+ allowTransform: true
229
};
230
231
@@ -603,6 +603,12 @@
603
!options.dragoverBubble && evt.stopPropagation();
604
}
605
606
+ //如果拖动的目标区域 accept 设置了, 当前拖拽元素不满足,直接返回
607
+ if (activeGroup && activeGroup.name === group.name
608
+ && evt.rootEl[expando].options.accept
609
+ && !_matches(dragEl, evt.rootEl[expando].options.accept)) {
610
+ return;
611
+ }
612
moved = true;
613
614
if (activeGroup && !options.disabled &&
0 commit comments