Skip to main content

Search and Top Navigation

#2994 closed bug (wontfix)

Opened June 12, 2008 12:41PM UTC

Closed June 16, 2008 07:45PM UTC

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:

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.

Attachments (0)
Change History (1)

Changed June 16, 2008 07:45PM UTC by paul comment:1

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")