Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5449 closed bug (notabug)

Draggable stack not working (found problem and fixed)

Reported by: epimorg Owned by:
Priority: critical Milestone: 1.9.0
Component: ui.draggable Version: 1.8
Keywords: stack group draggable Cc:
Blocked by: Blocking:

Description

Hi,

I tryed to use the new 1.8 draggable in a project and found that the stack option is not working and fixed it. Hope it helps:

Line 769 or around looks like this:

var group = $.makeArray($(o.stack)).sort(function(a,b) {

and should be, in my opinion, like this:

var group = $.makeArray($(o.stack.group)).sort(function(a,b) {

and now

stack: {group: '.post-it', min: 1} 

works as expected (by me at least) on all elements with a "post-it" class.

Change History (3)

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

Resolution: invalid
Status: newclosed

The stack option was changed to just be a selector. See the 1.8 upgrade guide and the associated ticket.

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

Sorry, the upgrade guide was linking to the wrong ticket, here's the correct one: http://dev.jqueryui.com/ticket/4365

comment:3 Changed 10 years ago by epimorg

I undestand now. I can use a class selector as a value for stack instead of the object and forget about the min parameter.

Thank you

Note: See TracTickets for help on using tickets.