Skip to content

Click on any item from page 2 onwards and it immediately jumps to the top of the list. How to conditionally retain scroll positions? #26

@slidenerd

Description

@slidenerd

Image

How to retain scroll position conditionally?

What is the issue?

  • View page on desktop view where it shows list and detail side by side
  • Click on show more and go to page 2 or 3 or any number for that matter
  • Now click on an item

CodeSandbox Link

Here is a codesandbox illustrating the issue

Question

  • When filter or search changes, scroll position should be reset
  • When clicking on items, scroll position should be retained
  • How to retain scroll position conditionally using your library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions