-
Notifications
You must be signed in to change notification settings - Fork 78
Scroll Reset Component is not functioning, when switching to different routes #95
Comments
You can also take a look at https://stackoverflow.com/a/39345165 |
Hi, so yes I already tried using useEffect and the clean up function, wrapping with withRouter
But it was also not working as it was expected. Tested the existing ScrollReset Component of the directory and the above new component in another project of mine. |
This seems like a complication. Are you feeling comfortable working on it? Or need someone associated with you on it? |
Yes, it would be better |
If anyone else is interested, can take this issue. I am currently not able to debug it |
I am working on this |
@Abhishek-kumar09 Have you tried this? |
Not yet. |
OKay i am trying it then |
So I tried a lot of things but nothing works, The problem with this is the page is in the form of overflow:scroll now when we are trying to make it to ScrollTop the page render this component but the problem here is The page is already on top (because of the TopBar) , We can resolve this issue but we need to make the overflow to be visible I am not able to deduct any other solution to this, can you help me @Abhishek-kumar09 |
While switching to a different route
The scroll postion is expected to move to top ( window.scrollTo(0, 0) )
But it remains fixed and does not work the way it was expected in the function
The text was updated successfully, but these errors were encountered: