Skip to content

preventScrollReset does not work with fetcher.Form on a redirect in action #9961

@nrako

Description

@nrako

What version of Remix are you using?

1.11.1

Steps to Reproduce

Please check this reproduction case:

https://stackblitz.com/edit/node-sbijvk?file=app/routes/index.tsx

Expected Behavior

<fetcher.Form preventScrollReset method="action"> should not reset the scroll position on a redirect.

Actual Behavior

The scroll position reset on a fetcher.Form.

Since https://stackblitz.com/edit/node-sbijvk?file=app/routes/index.tsx6 a Remix's Form has the preventScrollReset.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions