Ticket #7777 (closed bug: fixed)

Opened 3 years ago

Last modified 23 months ago

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:
Blocking: Blocked by:

Description

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"):  http://one-v.co.il/files/sortable.htm

Change History

comment:1 Changed 3 years ago by arnold.simha

comment:2 Changed 3 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.
     http://jsfiddle.net/jgnVa/3/

comment:3 Changed 2 years ago by skurka

Hey,

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.

Thanks!

comment:4 Changed 23 months ago by scott.gonzalez

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

comment:5 Changed 23 months ago by John Chen

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

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 23 months ago by joern.zaefferer

  • 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.