]> source.dussan.org Git - jquery-ui.git/commit
Sortable: Fix positioning when moving a Draggable item into a Sortable
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 15 Nov 2021 17:39:25 +0000 (18:39 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Nov 2021 17:39:25 +0000 (18:39 +0100)
commitb52ee4012d13e2f531a39fe0a53366e119dd1501
treed3a952048d41e0d900265f2ec7fe3763fef989f9
parentefe3b225179f8f2f3f2c05484f7757f90bc5a27b
Sortable: Fix positioning when moving a Draggable item into a Sortable

PR gh-1793 removed setting `this.offset.parent` in the Draggable
`refreshPositions` method which broke position calculations when moving
a Draggable item into a connected Sortable. restore that assignment.

Ref gh-1793
Fixes gh-2001
Closes gh-2009
tests/unit/sortable/options.js
ui/widgets/sortable.js