ObaidUrRehman / ng-drag-drop

Drag & Drop for Angular - based on HTML5 with no external dependencies. :tada:
MIT License
239 stars 123 forks source link

Sortable: Items duplicate when being reordered #75

Open ObaidUrRehman opened 7 years ago

ObaidUrRehman commented 7 years ago

This is a bit tricky to reproduce.

The sortable directive duplicates item in the list when being re-ordered. It's a bit tricky to reproduce but if items are repeatedly re-ordered in succession it will end with duplicate items in the list.

Some thing like this:

duplicate

I can't seem to figure out the root cause of this.

vinayakpatil commented 6 years ago

@ObaidUrRehman please refer to this fork of mine which seems to be working fine now.

https://github.com/vinayakpatil/ng-drag-drop/tree/feat/sortable