Hello! I ran into an issue with scrolling in Ember 4.12: if page is scrolled and some link clicked in the middle of it, the next page opens scrolled to the same position as the previous one, even if there is no any content on that position. Solutions like to add window.scrollTo(0,0) in router's "init" method don't work. Is there some other way to fix this? Thank you.
#scroll issue
1 messages · Page 1 of 1 (latest)
Hi! Take a look at https://github.com/DockYard/ember-router-scroll to solve this problem
Yes, I've tried already this and it didn't make difference. Probably it's not updated for 4.x. Its package.json has: "ember-cli": "~3.28.3"
I use ember-router-scroll on many 4.x apps and it does work