Scroll-to-top is not working in Electron app. HashHistory related? #4206
Unanswered
laukaichung
asked this question in
Q&A
Replies: 1 comment 2 replies
-
does it work on the website with hashhistory? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a website that uses the default router history and an Electron app version of the same site that uses
hashHistory
viacreateHashHistory()
. Both has thescrollRestoratiom enabled
. On the website, the scroll-to-top behavior works correctly on URL changes, but in the Electron app, the page does not scroll to the top on URL changes. Does the scroll-to-top work differently withhasHistory
?Web site (working):
Electron app (not working).
Beta Was this translation helpful? Give feedback.
All reactions