#4857 closed bug (fixed)
Nested li's don't work properly with sortable.
Reported by: | Eli | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8.24 |
Component: | ui.sortable | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This has several issues, described here:
http://stackoverflow.com/questions/1429999/jquery-ui-nested-sortable-errors
Change History (9)
comment:1 Changed 14 years ago by
comment:2 Changed 13 years ago by
Milestone: | TBD → 1.8 |
---|
comment:3 Changed 13 years ago by
I also had to connect nested sortable lists.
The first approach was to do like this:
$('.selector').sortable({
connectWith: '.selector', items: 'div'
})
=> this basically works but results in a jumpy behavior of the placeholder. Barely usable.
The second approach ist to do like this:
$('.selectorAAA').sortable({
connectWith: '[.selectorBBB, .selctorAAA]',
})
$('.selectorBBB').sortable({
connectWith: .selectorAAA, .selectorBBB?,
})
Actually this should result in a nested sortable list, where you can drag elements from the main list to the child lists, vice-versa, and between the child list. But this doesent work, as the placeholder does not appear when you drag elements from the main list to the child list and from the child list to the main list.
This second issue is described here pretty well: http://dl.dropbox.com/u/396448/JQueryUINestedListSorting.html
comment:5 Changed 11 years ago by
Some examples by Burke Holland:
With unpatched jquery-ui: http://jsfiddle.net/burkeholland/AbUPM/4/light/
With a patched version of jquery-ui: http://jsfiddle.net/yPQZx/
comment:6 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Sortable: Fixed jerkiness with nested-sortables. Fixes #4857 - Nested lists don't work properly with sortable.
Changeset: 2b899cc8437c5bc16b60a01a51241e4096fd80db
comment:7 Changed 11 years ago by
Sortable: Fixed jerkiness with nested-sortables. Fixes #4857 - Nested lists don't work properly with sortable. (cherry picked from commit 2b899cc8437c5bc16b60a01a51241e4096fd80db)
Changeset: a4ae3824893c085043122fd83d80723a08061ae2
comment:8 Changed 11 years ago by
Milestone: | 1.9.0 → 1.8.24 |
---|
Unfortunately kae's last demo[1] from bug #4703 with jquery-ui-1.8a1 is indeed practically unusable because of the jerkiness. Often it does two jumps for each mouse stop, at first throwing the element to bottom of the root element, then to the inner list.
[1] http://verens.com/demos/nested-sortables/nested-sortables.html