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: |
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"):
Attachments (0)
Change History (6)
Changed October 10, 2011 11:58AM UTC by comment:1
Changed November 13, 2011 01:16AM UTC by comment:2
Here two similar examples using lists in stead of divs:
- Same behavior as when divs are replaced by li. (thus ul isn't yet put in a li of the root list) http://jsfiddle.net/jgnVa/2/
- 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/
Changed September 29, 2012 11:04PM UTC by comment:3
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!
Changed October 10, 2012 06:47PM UTC by comment:4
component: | ui.sortable → ui.draggable |
---|---|
milestone: | 1.9.0 → 1.9.1 |
Changed October 10, 2012 06:48PM UTC by comment:5
resolution: | → fixed |
---|---|
status: | new → closed |
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 comment:6
summary: | Draggable and Nested Sortables bug (example included) → Dragging into nested sortables causes duplicated placeholders. |
---|
Test Case: http://jsfiddle.net/Jacfx/