Skip to content

Commit fa1248b

Browse files
committed
Fixing bug in detaching placeholders.
1 parent 4de2c5b commit fa1248b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ $.fn.sortable = function(options) {
4040
if (items.is(this)) {
4141
dragging.hide();
4242
$(this)[placeholder.index() < $(this).index() ? 'after' : 'before'](placeholder);
43+
placeholders.not(placeholder).detach();
4344
}
44-
placeholders.not(placeholder).detach();
4545
return false;
4646
}).bind('drop', function(e) {
4747
if (!items.is(dragging) && connectWith !== $(dragging).parent().data('connectWith')) {

0 commit comments

Comments
 (0)