Skip to content

Nested views with defined custom scroll element does not reset scroll position #329

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
donnysim opened this issue Jun 26, 2020 · 5 comments

Comments

@donnysim
Copy link

Version

4.0.0-alpha.13

Reproduction link

https://codesandbox.io/s/frosty-sea-ye8ev

Steps to reproduce

  1. Click Foo or Bar
  2. Scroll down
  3. click Foo or Bar

What is expected?

#app element scrolls to the top

What is actually happening?

#app element scroll is unchanged

@posva
Copy link
Member

posva commented Jun 26, 2020

I don't understand what you are expecting. The page scrolls to #app with an offset of 0

@donnysim
Copy link
Author

donnysim commented Jun 26, 2020

Shouldn't the #app container scroll to the top and the page? Because as of now it feels like el effects nothing.

@posva
Copy link
Member

posva commented Jun 26, 2020

it is scrolling to the top of the page. What browser are you using?

the scroll behavior is following vuejs/rfcs#176

@donnysim
Copy link
Author

Chrome 83, only body is scrolling.

@posva
Copy link
Member

posva commented Jun 26, 2020

yes, that's expected. The el property is not to scroll inside of an element but to scroll to a specific element position

@posva posva closed this as completed Jun 26, 2020
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

2 participants