Dropdown menu scroll posotion resets to top when opened #346
-
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 |
Beta Was this translation helpful? Give feedback.
Answered by
kentcdodds
Jul 26, 2023
Replies: 1 comment
-
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: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lewisblackburn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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