Search and Top Navigation
#10628 new feature ()
Opened September 28, 2014 07:59AM UTC
Last modified March 17, 2019 04:02AM UTC
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.
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...