Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed 0 value causing falsy scrollTopOffset #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sammckay10
Copy link

Setting scrollTopOffset to 0 would not scroll user back to the top of the page when changing route because when checking for scrollTopOffsets value, 0 would imply there wasn't one (falsy).

Setting scrollTopOffset to 0 would not scroll user back to the top of the page when changing route because when checking for scrollTopOffsets value, 0 would imply there wasn't one (falsy).
@sammckay10
Copy link
Author

Any chance of merging this?

@biirus
Copy link

biirus commented Apr 18, 2020

Yep, it would be nice to have this fix merged.

@joewoodhouse
Copy link

@jthoms1 can we get this merged?

@kirillgroshkov
Copy link

looks like a legit fix

rwaskiewicz added a commit that referenced this pull request Jun 8, 2022
this commit temporarily pins the stencil version to v2.13.0.
in v2.14.0, we upgraded typescript to v4.5.4, which is now 
causing issues with the typings found in `@stencil/router` v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants