0

I have an tag on page 1 that is near the bottom of the page. When clicked, the next page loads, but also near the bottom.

Happens when using Safari and Chrome on Windows 10. Doesn't happen on Chrome on Mac OS.

I originally tried it without the hash for a jump to the top, but added it after to try, and it still jumps to the bottom.

If it helps, I am using react-router

ryd3r
  • 283
  • 4
  • 14
  • Possible duplicate of [react-router scroll to top on every transition](https://stackoverflow.com/questions/36904185/react-router-scroll-to-top-on-every-transition) – Carlos Frias Mar 08 '19 at 12:23

1 Answers1

0

Check this https://reacttraining.com/react-router/web/guides/scroll-restoration. This must solve your problem. Hope this helps :)

Aniket Rane
  • 307
  • 3
  • 6