Skip to content

Commit b8d08ff

Browse files
committed
fix(VDataTableVirtual): show index from virtualized items
1 parent b192e9f commit b8d08ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/components/VDataTable/VDataTableVirtual.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export const VDataTableVirtual = genericComponent<new <T extends readonly any[],
243243
onUpdate:height={ height => handleItemResize(itemSlotProps.internalItem.index, height) }
244244
>
245245
{ ({ itemRef }) => (
246-
slots.item?.({ ...itemSlotProps, itemRef }) ?? (
246+
slots.item?.({ ...itemSlotProps, index: itemSlotProps.internalItem.index, itemRef }) ?? (
247247
<VDataTableRow
248248
{ ...itemSlotProps.props }
249249
ref={ itemRef }

0 commit comments

Comments
 (0)