Skip to content

<router-link> scroll issue #1954

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

Closed
anonim2214 opened this issue Dec 25, 2017 · 2 comments
Closed

<router-link> scroll issue #1954

anonim2214 opened this issue Dec 25, 2017 · 2 comments

Comments

@anonim2214
Copy link

Version

3.0.1

Reproduction link

https://jsfiddle.net/u8egqj0q/

Steps to reproduce

Click to "router-link to Thirteen"

What is expected?

The same behavior as when clicking (scroll to element, change window.location)

What is actually happening?

Only App.$route changed

@MaximeAubry
Copy link

I have the same problem

@posva
Copy link
Member

posva commented Jan 4, 2018

Hey, sorry for the delay, you need to setup scrollBehavior. BTW, you were not calling next in your beforeEach, making no navigation at all: https://jsfiddle.net/jp05wy9q/1/

Navigating on the same route doesn't work thought (see #1668)

@posva posva closed this as completed Jan 4, 2018
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

No branches or pull requests

3 participants