[openstreetmap/openstreetmap-website] Use turbo for pagination (PR #4646)

David Tsiklauri notifications at github.com
Mon Aug 12 08:04:09 UTC 2024


For some reason, `:data => { :turbo => { :frame => "pagination"` doesn't work. Turbo frame still behaves according to `target="_top"` and refreshes whole page instead of just updating `turbo-frame` element. I tried adding `"data-turbo-frame" => "pagination"` to the links and it started working properly. Maybe Turbo can't read frame parameter from `data-turbo="{"frame":"pagination","action":"advance"}"` attribute or it has lower priority index than `target` attribute.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4646#issuecomment-2283333871
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4646/c2283333871 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240812/e97e9a1c/attachment.htm>


More information about the rails-dev mailing list