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

fix: Scroll to anchor not working #213 #214

Merged
merged 6 commits into from
May 29, 2019

Conversation

krmax44
Copy link
Contributor

@krmax44 krmax44 commented May 27, 2019

Summary

Fixes #213.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

If changing the UI/CSS related code, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

You have tested in the following browsers: (Providing a detailed version will be better.)

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature
  • Related documents have been updated
  • Related tests have been updated

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@netlify
Copy link

netlify bot commented May 27, 2019

Deploy preview for saber ready!

Built with commit 5c2ba51

https://deploy-preview-214--saber.netlify.com

@egoist
Copy link
Collaborator

egoist commented May 27, 2019

Let's remove

'$route.hash': {
then

@krmax44
Copy link
Contributor Author

krmax44 commented May 27, 2019

I just noticed a couple of changes missing in my PR. I'll push them tomorrow.

@egoist
Copy link
Collaborator

egoist commented May 28, 2019

Another thing needs to fixed: trigger scroll on the initial load, currently we only trigger scroll after route navigation.

@krmax44
Copy link
Contributor Author

krmax44 commented May 28, 2019

Exactly, that change didn't go through. I'll push that later.

@krmax44
Copy link
Contributor Author

krmax44 commented May 28, 2019

So it works under Firefox but not Chrome 🤔 https://5ced00ce5e1c320008959c62--saber.netlify.com/tutorial/tutorial.html#prerequisites

@kidonng
Copy link
Contributor

kidonng commented May 28, 2019

So it works under Firefox but not Chrome 🤔 5ced00ce5e1c320008959c62--saber.netlify.com/tutorial/tutorial.html#prerequisites

FYI, it works on (old) Edge. So blame Chromium😢

@krmax44
Copy link
Contributor Author

krmax44 commented May 28, 2019

See https://deploy-preview-214--saber.netlify.com/docs#fn1 nicely scrolls to where it's supposed to go 😄

@krmax44 krmax44 requested review from egoist and a team May 28, 2019 15:18
@egoist egoist merged commit 2286ecd into saberland:master May 29, 2019
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.

Scroll to anchor in router.scrollBehavior doesn't work
4 participants