rniemeyer / knockout-sortable

A Knockout.js binding to connect observableArrays with jQuery UI sortable functionality
MIT License
547 stars 128 forks source link

Issues of duplicate entries in list #129

Closed sgringwe closed 5 years ago

sgringwe commented 9 years ago

When I drag elements on the latest version of the sortable i get duplicate records in the list - one that is the original and one that is the new item. This happens even if I completely change the array. Any ideas why? This behavior is changed from version 0.8.6

rniemeyer commented 9 years ago

Can you put something in a fiddle quick and I'll take a look? This one seems fine: http://jsfiddle.net/rniemeyer/AC49j/

bufobufo commented 9 years ago

@sgringwe: Can it be that you've been using a template for the sortable-binding which contains a comment at root level? I had the same problem where moving that evil comment one level deeper inside the template fixed the issue.

http://jsfiddle.net/bufobufo/8b0e3rmp/

anthonyvscode commented 9 years ago

@bufobufo you are a legend, removing the comment at root level fixed the issue for me.

bbarber commented 6 years ago

Duplicate entries are being removed from the list: http://jsfiddle.net/hw9B2/1602/

(drag the first element to the bottom 3 times, one will be removed)