Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#7777 closed bug (fixed)

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"):

Change History (6)

comment:1 Changed 5 years ago by arnold.simha

comment:2 Changed 5 years ago by Klap-in

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.

comment:3 Changed 5 years ago by skurka


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.


comment:4 Changed 4 years ago by scottgonzalez

  • Component changed from ui.sortable to ui.draggable
  • Milestone changed from 1.9.0 to 1.9.1

comment:5 Changed 4 years ago by John Chen

  • Resolution set to fixed
  • Status changed from new to closed

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

Changeset: 20e6064711abca6f540e18ec9feca8ece3720324

comment:6 Changed 4 years ago by jzaefferer

  • Summary changed from Draggable and Nested Sortables bug (example included) to Dragging into nested sortables causes duplicated placeholders.
Note: See TracTickets for help on using tickets.