Skip to content

Commit a14747d

Browse files
committed
fix: inconsistent state on reused view
1 parent 09f7cf5 commit a14747d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: packages/vue-virtual-scroller/src/components/RecycleScroller.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,11 @@ export default {
585585
}
586586
views.set(key, view)
587587
} else {
588-
view.nr.used = true
589588
view.item = item
589+
view.nr.used = true
590+
view.nr.index = i
591+
view.nr.key = key
592+
view.nr.type = type
590593
}
591594
592595
// Update position

0 commit comments

Comments
 (0)