Skip to content

Implement scroll to top when switching pages in withPagination OnyxDatagrid feature #5357

@JoCa96

Description

@JoCa96

Why?

From the support chat:

Hi, regarding the OnyxDataGrid, there is a way to reset vertical scroll position after page changing ?
Example : PlayGround

( If I scroll down to bottom, and I change page, the scroll stay at bottom )

Acceptance criteria

  • When switching the page the datagrid scrollcontainer scrolls to the top

Implementation details

Playground workaround

DEV handover checklist

Storybook

DEV handover done with: @ADD_DEV_NAME_HERE

Testing

  • covered by visual screenshot tests
  • covered by functional tests (Playwright or unit test)

Other

  • follow-up tickets were created if necessary (add links below)

Metadata

Metadata

Assignees

Labels

0-refinementAll issues that can or need to be estimated in our next refinementdevRequires technical expertise

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions