Bug Tracker

Ticket #2157 (closed bug: wontfix)

Opened 8 months ago

Last modified 7 months ago

Sortable update callback called before extra DOM element is removed

Reported by: lunarman9 Assigned to: paul
Type: bug Priority: major
Milestone: 1.2.2 Component: ui
Version: 1.2.1 Keywords: sortable update callback
Cc: Needs: Review

Description

When a sortable item is dragged, a placeholding <li> is added to the list to occupy dropping space. When the dragged <li> is dropped into this placeholding space the update callback is called before removing this temporary <li> element - any $('#_id_of_list > li') calls in this callback will return the correct <li> items plus the extra placeholding <li>. I've worked around this bug by adding a timeout inside the callback.

Attachments

Change History

Changed 7 months ago by paul

  • status changed from new to closed
  • resolution set to wontfix

This is on purpose: The helper is needed for many callback uses to work properly. So I guess your solution might be the best one.

Note: See TracTickets for help on using tickets.