Turbo Router - Disable Visit Scrolling

Hi,

I red the documentation about scroll visit.

Disable Visit Scrolling

Every visit scrolls to the top of the page like most links in a browser. However, in some cases preserving the scroll position is useful, such as situations where links act like filters. You may disable visit scrolling using the data-turbo-no-scroll attribute on the link element.

<a href="/" data-turbo-no-scroll>Filter</a>

In my project the is not disabled a the visit scrolling, but never scroll to the top when visit a page/navigate.

Is anyone aware of this problem?

Thank you,
Zs

Hi @ngyzsolt

I can’t say I’ve seen that problem before. The only thing I can think of that might be stopping this is a JavaScript error that could halt the process. Try checking the developer console for errors.