DEV Community

loading...

Discussion on: Handling Dialogs with Vue Router

Collapse
steeve profile image
Steeve

Thank for the article, this is what I was looking for !

Just a question, I tried to implement in my projet:
I have in my nested page a long list of articles (coming from my store fetched at "created"). When I scroll and click to an article to display the dialog, I'm losing my scroll position at my selected article.
Do you have some tricks to keep the scroll position of the child component in the background of the dialog ?

Collapse
berniwittmann profile image
Bernhard Wittmann Author

You can control the scrolling behavior with vue router. Take a look at the docs