Opened 12 years ago

Closed 12 years ago

#2994 closed bug (wontfix)

UI Sortables update method

Reported by: NeoAnderson Owned by: paul
Priority: major Milestone: 1.5
Component: ui.sortable Version: 1.5
Keywords: UI Sortables update Cc:
Blocked by: Blocking:

Description

I am using UI Sortables for sorting of DIV elements and I am using update method to save the new positions of the DIV elements. But when I drag a DIV element from one column into other column, and the update method is being called. But when I get the number of DIV elements in each column, I am getting wrong count as the method is being called without removing the proxy element.

When I have only one DIV element(it is in first column) and I drag it to third column, then the update method is being fired and I am getting no.of DIV's in first column as one and in third column also, I am getting one. So, the update method is being called before removing the proxy element. After this update method, if I count the DIV's again, I am getting correct count and this time, the proxy is not in the list.

The update method should be called after removing the proxy element.

Change History (1)

comment:1 Changed 12 years ago by paul

Resolution: wontfix
Status: newclosed

This is not possible due to technical reasons. However, a very easy workaround is to either use the appendTo option to append the helper to an element other than the list, or to simply not include the helper in your Query: $(..).not(".ui-sortable-helper")

Note: See TracTickets for help on using tickets.