Opened 7 years ago

Last modified 6 years ago

#7619 open feature

Sortable: Add refreshPositions option to detect dynamically created droppables

Reported by: mflerackers Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.sortable Version: 1.8.15
Keywords: Cc:
Blocked by: Blocking:

Description

When dragging an item from a sortable to a draggable which is created dynamically, the item does not recognize the droppable because there is no refreshPositions:true for sortables. See http://jsfiddle.net/HANq6/8/.

Change History (4)

comment:1 Changed 7 years ago by Scott González

Component: ui.coreui.sortable
Type: bugfeature

comment:2 Changed 6 years ago by Scott González

Milestone: 1.9.02.0.0

comment:3 Changed 6 years ago by Jörn Zaefferer

Status: newopen

Consider for redesign.

comment:4 Changed 6 years ago by tj.vantoll

Summary: There is not way to refreshPositions for a sortable being dragged to a dynamically created draggableSortable: Add refreshPositions option to detect dynamically created droppables

Here's a reduced test case against master: http://jsfiddle.net/tj_vantoll/YZvkp/

What's interesting is that sometimes the sortable recognizes the newly created droppable and sometimes it doesn't. Not sure why.

Note: See TracTickets for help on using tickets.