useFetcher().Form
scrolls to top of the page even when preventScrollReset
is used
#8991
Labels
awaiting release
This issue has been fixed and will be released soon
bug:unverified
feat:routing
feat:scroll
Issues related to scroll restoration
Reproduction
app/routes/redirectme.tsx
to reproduce the behavior. I can reproduce the same issue by clicking on the "Redirect with fetcher.Form" button using the return key on the keyboard (by simply pressing it down and waiting a bit).Peek.2024-03-06.17-42.mp4
Might be related to #3145 and #4265.
System Info
Used Package Manager
npm
Expected Behavior
The page scrollbar should stay where it is and the page should not scroll to top no matter which button (or how fast) is clicked.
Actual Behavior
The page sometimes scrolls to top.
The text was updated successfully, but these errors were encountered: