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 3aa5272 commit 47da2b9Copy full SHA for 47da2b9
jquery.sortable.js
@@ -18,7 +18,7 @@ jQuery.fn.sortable = function() {
18
if (!dragging) return true;
19
e.preventDefault();
20
e.originalEvent.dataTransfer.dropEffect = 'move';
21
- if (this !== placeholder[0] && this !== placeholder.parent()[0]) {
+ if (items.is(this)) {
22
dragging.hide();
23
$(this)[placeholder.index() < $(this).index() ? 'after' : 'before'](placeholder);
24
}
0 commit comments