You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
The new item views will be created in CollectionView but the order of added items will be reversed. This is because of this line in CollectionView:
# When an item is added, create a new view and insert it.itemAdded: (item, collection, options) =>@insertView item, @renderItem(item), options.at
options.at has the original value 5, so all items will insert in this position, where it should insert into position of options.index which has the proper position of newly added model in the whole Collection.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems there is a little bug in CollectionView. If I add to Collection array of models, like:
The new item views will be created in CollectionView but the order of added items will be reversed. This is because of this line in CollectionView:
options.at
has the original value 5, so all items will insert in this position, where it should insert into position ofoptions.index
which has the proper position of newly added model in the whole Collection.The text was updated successfully, but these errors were encountered: