Skip to content

Commit 4aa6b35

Browse files
fix: index lost, fix #783 (#784)
Co-authored-by: vitoliu <[email protected]>
1 parent bd83b8b commit 4aa6b35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vue-virtual-scroller/src/components/RecycleScroller.vue

+1
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ export default {
592592
// View already assigned to item
593593
if (!view.nr.used) {
594594
view.nr.used = true
595+
view.nr.index = i
595596
newlyUsedView = true
596597
if (unusedPool) {
597598
const index = unusedPool.indexOf(view)

0 commit comments

Comments
 (0)