Skip to content

Scrolling does not work correctly. #960

Open
@alkosorukov

Description

@alkosorukov

Describe the bug

Scrolling does not work correctly. I thought the problem was with the position: sticky table header, but no.

Your minimal, reproducible example

https://codesandbox.io/p/devbox/mystifying-dew-t5nd7v?workspaceId=ws_G2EwNr8rBvsbnPfjfHKzRb

Steps to reproduce

Let's take a basic example from https://tanstack.com/table/v8/docs/framework/react/examples/virtualized-rows and add a button (for example, scroll to the last element).

Expected behavior

We expect: when you click on the button, you will see 50,000 items. Reality: we not see element 50000.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

windows, edge

tanstack-virtual version

3.13.14

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions