Skip to content

[Bug Report][3.8.0] ScrollToIndex last item not in view #21189

Open
@mrjackwills

Description

@mrjackwills

Environment

Vuetify Version: 3.8.0
Vue Version: 3.5.13
Browsers: Firefox 136.0
OS: Windows 10

Steps to reproduce

Create a virtual data table with more items than can be viewed given the tables height.
Use ScrollToIndex to attempt to scroll to the last entry in the table.

Expected Behavior

When ScrollToIndex is used to scroll to the index of the final item in the items array, expect that item to by visible in the v-data-table-virtual

Actual Behavior

The last item is scrolled into partial view, the user stills needs to interact with the table to scroll down to actually get the final item into view.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

In my testing it doesn't seem to make any difference, if given an array of 1000 items, if scrollToIndex tries to scroll to item 1000, 1100, or even 10000, the last item is always offscreen/table.

Have tested on desktop versions of Firefox, Chrome, and Edge browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions