fix: Fix RecycleScroller end index (no-changelog) (#5272)

This commit is contained in:
Alex Grozav
2023-01-27 17:09:55 +02:00
committed by GitHub
parent cedf2e012c
commit 439c9c6e1f

View File

@@ -87,7 +87,7 @@ export default defineComponent({
}); });
const index = foundIndex + props.offset; const index = foundIndex + props.offset;
return index === -1 ? props.items.length - 1 : index; return foundIndex === -1 ? props.items.length - 1 : index;
}); });
const visibleItems = computed(() => { const visibleItems = computed(() => {