all AI news
Maintain scroll position in Turbo without data-turbo-permanent
June 7, 2023, 8:44 p.m. | Konnor Rogers
DEV Community dev.to
Alright, this will be short and sweet for future me.
Maintaining scroll position is notoriously painful.
Some articles like this have you add data-turbo-permanent
: https://dev.to/mikerogers0/persist-scroll-positions-with-hotwire-turbo-1ihk
Why not data-turbo-permanent
? Well, in our case we had a sidebar with a highlighted link for the current page, which means link clicks never caused allowed for updating the current link. There were some workarounds we could have done, but decided not to.
There is also this GitHub issue which has a ton …
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Business Data Analyst
@ Alstom | Johannesburg, GT, ZA