SortableJS / meteor-sortablejs

Reactive reorderable lists.
http://rubaxa-sortable.meteor.com
20 stars 10 forks source link

Meteor 'remove' doesn't updates the order numbers #7

Open rgnevashev opened 8 years ago

rgnevashev commented 8 years ago

In a sorted list with order numbers from (1,2 .. N), 'onSort' is amazing. It just updates the order number of items in the list. But, on removing or deleting an item from the list, the order number of elements next to deleted item are not changing. Not sure if it is expected condition or un-implemented, but it would be nice if the order numbers update on remove too.

Ex: 1 2 3 4 5 6 7 8 On remove : 5 Current order list: 1 2 3 4 6 7 8 Proposed order list: 1 2 3 4 5 6 7