Ticket #3658 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

update is called before receive (callbacks)

Reported by: Marc Diethelm Owned by:
Priority: critical Milestone: 1.7
Component: ui.sortable Version: 1.6rc2
Keywords: update, receive, callback, sortable Cc:
Blocking: Blocked by:

Description

When dropping an item from a draggable onto a sortable I expect the 'receive' callback to be called before the 'update' callback. However the opposite happens. This means 'update' misses the new sortable item.

Attachments

draggable_sortable.test.html Download (1.7 KB) - added by Marc Diethelm 6 years ago.
Testcase

Change History

comment:1 in reply to: ↑ description ; follow-up: ↓ 3 Changed 6 years ago by Marc Diethelm

Additional remarks: For this to happen

  • the sortable must already contain items
  • the order must be changed by the dropped item

Changed 6 years ago by Marc Diethelm

Testcase

comment:2 Changed 6 years ago by scott.gonzalez

  • Priority changed from major to critical
  • Milestone changed from TBD to 1.6

comment:3 in reply to: ↑ 1 Changed 6 years ago by Marc Diethelm

This does NOT happen if revert is explicitly set to true (overriding the default which is also true).

comment:4 Changed 6 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r1559.

Note: See TracTickets for help on using tickets.