-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Restoring Scrollposition after editing JS/CSS #56
Comments
Had the same issue myself. Turbo now has a dynamic option that worked for me. <%= stylesheet_link_tag "application", "data-turbo-track": "dynamic" %> |
Perfekt, that fixed the Problem. Thankyou! |
Switching to EDIT: my problem being my scroll resetting to the top of the page any time my Tailwind styles rebuilt |
I wish there was a way to do some neat magic with Javascript to prevent reloads, but unfortunately when using import maps they bake in the turbo reload tag: |
Hi,
i have an issue with the scroll position.
After editing my JS or CSS Code it reloads the page without scrolling to the restored scroll position.
I only changed the listen_paths of the gem because im using postcss to:
config.hotwire_livereload.disable_default_listeners = true
config.hotwire_livereload.listen_paths = [Rails.root.join("app/assets/builds")]
My console output:
The text was updated successfully, but these errors were encountered: