Skip to main content

Search and Top Navigation

#7777 closed bug (fixed)

Opened October 10, 2011 11:55AM UTC

Closed October 10, 2012 06:48PM UTC

Last modified October 25, 2012 02:12PM UTC

Dragging into nested sortables causes duplicated placeholders.

Reported by: arnold.simha Owned by:
Priority: minor Milestone: 1.9.1
Component: ui.draggable Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

I'we created a nested sortable list (with divs), there is no errors when sorting the list, BUT when I use draggble that connected to sortable I get strange behavior. When I drag it into nested sortable it's duplicates the item (just see the example - drag the item into "SortbleItem 2"):

Attachments (0)
Change History (6)

Changed October 10, 2011 11:58AM UTC by arnold.simha comment:1

Changed November 13, 2011 01:16AM UTC by Klap-in comment:2

Here two similar examples using lists in stead of divs:

  • Similar, but different behavior. Here the sublist ul is wrapped in a li of root list. This results in one duplicate in root list and one in sublist after drag object into sublist. Thus not both in sublist such as previous example or the div-example above.

Changed September 29, 2012 11:04PM UTC by skurka comment:3


I had the same problem just now.

It seems to work correctly if the nested Sortables are connect through "connectWith" option and the draggable is only connected to one of all Sortables. I can drop the draggable to any connected sortable, and until now I never had duplicated placeholders...

I hope this information helps to create a patch.


Changed October 10, 2012 06:47PM UTC by scottgonzalez comment:4

component: ui.sortableui.draggable

Changed October 10, 2012 06:48PM UTC by John Chen comment:5

resolution: → fixed
status: newclosed

Draggable: Fix a bug when dragging into nested sortables there are duplicated placeholders. Fixes #7777 - Draggable and Nested Sortables bug.

Changeset: 20e6064711abca6f540e18ec9feca8ece3720324

Changed October 25, 2012 02:12PM UTC by jzaefferer comment:6

summary: Draggable and Nested Sortables bug (example included)Dragging into nested sortables causes duplicated placeholders.