Skip to content

Commit 3eadf2b

Browse files
committed
Draggable: Calling refreshPositions instead of _refreshItems when dragging into a connected sortable. Fixed: #5563 - Draggable li with connectToSortable option cannot be dropped on the connected sortable ol
1 parent 89c0961 commit 3eadf2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.draggable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
475475
instance: sortable,
476476
shouldRevert: sortable.options.revert
477477
});
478-
sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
478+
sortable.refreshPositions(); //Do a one-time refreshPositions at start to initialize the containerCache
479479
sortable._trigger("activate", event, uiSortable);
480480
}
481481
});

0 commit comments

Comments
 (0)