Skip to content

Commit

Permalink
fix: items not updating if new object reference, fix #690
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Dec 14, 2022
1 parent c92785a commit 5b5df8c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ export default {
// Assign view to item
views.delete(view.nr.key)
view.item = item
view.nr.used = true
view.nr.index = i
view.nr.key = key
Expand All @@ -601,6 +600,9 @@ export default {
}
}
// Always set item in case it's a new object with the same key
view.item = item
if (newlyUsedView) {
if (i === items.length - 1) this.$emit('scroll-end')
if (i === 0) this.$emit('scroll-start')
Expand Down

0 comments on commit 5b5df8c

Please sign in to comment.