You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If something triggers a full Page Reload causing to be morphed rather than replaced, the presence of refresh="morph" is smart and it also re-requests the src and morphs the response from src so that the contents within side turbo-frame only updates what is needed.
However, if you instead trigger a refresh to the frame using javascript, e.g. document.getElementById('post').reload() the turbo-frame ignores the refresh="morph" and does a full replacement within the turbo-frame.
The ideal behavior:
When refresh="morph" is present on a turbo-frame then anything that triggers a refresh of that turbo-frame (e.g. element.reload()) should be a morphing refresh.
The text was updated successfully, but these errors were encountered:
@jorgemanrubia acknowledge the issue over on this PR comment: #1068 (comment)
To elaborate on the issue for whomever may tackle this. Imagine this page setup:
If something triggers a full Page Reload causing to be morphed rather than replaced, the presence of
refresh="morph"
is smart and it also re-requests the src and morphs the response from src so that the contents within side turbo-frame only updates what is needed.However, if you instead trigger a refresh to the frame using javascript, e.g.
document.getElementById('post').reload()
the turbo-frame ignores therefresh="morph"
and does a full replacement within the turbo-frame.The ideal behavior:
When
refresh="morph"
is present on a turbo-frame then anything that triggers a refresh of that turbo-frame (e.g.element.reload()
) should be a morphing refresh.The text was updated successfully, but these errors were encountered: