Comments (5)
I've opened #595 to implement this.
from turbo-rails.
Guys, explain to me why when I click on links I am taken to the top, “scroll: :preserve” does not work
turbo-rails v2.0.2
rails 7.1.3
<head>
....
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
<%= yield :head %>
</head>
worked well in --pre versions
after update not work
from turbo-rails.
@seanpdoyle I tried other options, it doesn't work.
from turbo-rails.
@jorgemanrubia is the <turbo-stream action="refresh" request-id="...">
element meant for public consumption, or is it an implementation detail of broadcasts_refreshes
?
from turbo-rails.
@nikolaokonesh your question does not seem related to this issue, and might be better suited as an Issue of its own.
With that being said, are you confident that the <meta>
elements are being rendered into the document's <head>
? If you call turbo_refreshes_with
after the yield :head
call, does it behave as you'd expect?
from turbo-rails.
Related Issues (20)
- how do I batch multiple turbo stream broadcasts?
- <turbo-cable-stream-source> tag can affect visual layout HOT 1
- broadcast_update_to partial should be smarter and extract the inner_html, it feels like a bug
- Turbo not loading on Safari in production HOT 1
- Any Security Constraints to turbo_method: 'post' functionality?
- using the view transitions API? HOT 1
- Unable to render layouts when using inline turbo stream responses HOT 1
- 8.0.5: cdn (and thus importmap pins) has broken import paths "CbGBsmqA.js" instead of cable.js HOT 6
- Turbo Frame + Nginx Cache + data-action-advance
- Need an option for turbo_reset_scroll_tag that goes to bottom for long lists / continuous scrolling
- data-turbo-confirm ignored when data-turbo="false"? HOT 3
- Internationalization (I18n) not working HOT 2
- aria-busy state cleared to early from turbo frame, leads to accessibility issues. HOT 1
- Putting anything inside a <noscript> tag causes Turbo to duplicate all <script> tags into the <body> HOT 2
- Turbo frame request is removing the csrf meta tag
- Adding X-Turbo-Request-Id to custom fetch requests HOT 2
- Release for the routes warning HOT 1
- `turbo_stream` helper requires `capture`
- Issues with broadcast_to and single table inheritance
- Possible to detect Action Cable disconnections when using `turbo_stream_from`? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turbo-rails.