OOKB / mgs2018

0 stars 1 forks source link

Make certain routes scroll to the top #9

Closed trevorsee closed 6 years ago

trevorsee commented 6 years ago

Should start at top:

Should not:

webmasterkai commented 6 years ago

Let me know if you find anything else that needs fixing. If you add the top property to a <Link /> invocation it should work as expected. The window action is happening on the individual link click instead of on the route but the results should be as you would expected. On the route is tricky because typical forward/back browser buttons usually restores page position and always going to the top on the route visit would override that functionality.