Skip to content

Dropdown menu scroll posotion resets to top when opened #338

Closed

Description

@lewisblackburn

The scroll position of the page is unexpectedly reset to the top when opening a dropdown menu. I have recreated the problem with remix + shadcn-ui and the scroll position doesn't reset. This is also prevalent in the user dropdown. I'm not sure if this is intended behaviour so apologies if this is the case!

Screencast.from.23-07-23.19.53.54.webm

Activity

  1. kentcdodds commented on Jul 26, 2023

    @kentcdodds
    Member

    Without seeing the code it's hard to say what could be causing this. Is that a Link you're clicking on? If so, you may consider using: preventScrollReset

  2. locked and limited conversation to collaborators on Jul 26, 2023
  3. converted this issue into a discussion #346 on Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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