Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: prevent scroll to reset not working #291

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

nimaa77
Copy link
Contributor

@nimaa77 nimaa77 commented May 27, 2023

as mentioned in #290, preventScrollReset not working because it's not passing the option to the submitter/fetcher

this pull requests proxies the preventScrollReset and relative props to the submitter/fetcher (I found out relative is not proxied either so I added that to the opt variable as well)

Other Notes

  1. I had to update the @remix packages to a newer version since preventScrollReset wasn't available at that version
  2. I wasn't able to test this change using apps/sample-app it seems there is a linking issue between packages
    so please before merging this PR test it (if any changes are needed just push your changes - no need to ask)

Closes #290

@vercel
Copy link

vercel bot commented May 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
remix-validated-form ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2023 1:29pm

@airjp73
Copy link
Owner

airjp73 commented Jun 6, 2023

Thanks! The test failure looks unrelated to this PR so I'm merging.

@airjp73 airjp73 merged commit 44ec5cf into airjp73:main Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: preventScrollToTop not working
2 participants