Skip to content
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

turbo-frame with text only not rendering on restoration visits #1278

Open
tpaulshippy opened this issue Jun 14, 2024 · 0 comments
Open

turbo-frame with text only not rendering on restoration visits #1278

tpaulshippy opened this issue Jun 14, 2024 · 0 comments

Comments

@tpaulshippy
Copy link

tpaulshippy commented Jun 14, 2024

Steps to reproduce

  1. Make a frame with only text in it.
  2. Use a turbo-action "advance" link to advance that frame to another URL.
  3. Click Back in your browser.

Expected

The original text is restored.

Actual

The frame is blank.

@tleish explained this here:

I'm not sure the turbo-frame with text only not rendering on restoration visits is a bug. I believe turbo uses cloneNode to cache html. If the frame has no nodes to cache (text only), then it doesn't cache it.

Originally posted by @tleish in #1241 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant