rniemeyer/knockout-sortable — Issue #9: UI and data can get out of sync
Author: mbest
Created: 2012-03-09 10:45:03+00:00
State: open

I found this bug while helping someone use sortable (a simpler version) with my deferred updates plugin. Here's how to reproduce (in Chrome, at least):

1. Open the seating chart example: http://jsfiddle.net/rniemeyer/UdXr4/
2. Drag Bobby below Ted (but don't drop it) and then put it back.
3. Drag Jim before Ted (but don't drop it) and put it back.
4. Drag Bobby and drop it after Ted.
5. Now the list and data are out of sync. The list says Ted, Jim, Bobby (wrong) and the data says Ted, Bobby, Jim (correct).

Here's a link to the issue where I discussed this and provided a fix: https://github.com/mbest/knockout-deferred-updates/issues/2