Opened 5 years ago

Last modified 5 weeks ago

#10628 new feature

Provide option to connect sortable with droppable

Reported by: tj Owned by:
Priority: minor Milestone: none
Component: ui.droppable Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:

Description

Currently, two sortables can be connected with the connectWith option. Draggables can be connected to sortable using connectToSortable option.

But there is no option to connect a sortable and a droppable. When an item from sortable is dropped into droppable, it simply reverts back to the sortable.

as you can see in http://jsfiddle.net/5mu2m4c0/.

Expected output: the dropped item stays in droppable and the background color is added to it, like this http://jsfiddle.net/mmfL97d9/ draggable - droppable interaction

You can find relevant discussions here http://stackoverflow.com/q/2090121/2333214 and here http://stackoverflow.com/q/3996048/2333214

It'd be great to have the same option, connectToSortable for droppable widget as well.

Change History (2)

comment:1 Changed 5 years ago by tj

Here is a related blog post http://www.fraggednation.com/blog/JQuery-using-a-Sortable-and-Droppable-objects-together-374 which uses a hacky - unreliable - unefficient workaround...

comment:2 Changed 5 weeks ago by Barry Chapman

Has there been any movement on this?

Note: See TracTickets for help on using tickets.