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

Support navigating a Frame to its current src #248

Closed
wants to merge 2 commits into from

Conversation

seanpdoyle
Copy link
Contributor

Rename hasBeenLoaded to willEagerLoad

First, rename hasBeenLoaded to willEagerLoad, and flip the default
from false to true.

Next, set the flag to false if the FrameController is initialized
with a loading="lazy" frame. Finally, set the flag to true once the
element appears in the viewport for the first time.

Support navigating a Frame to its current src

Closes #245

Update the FrameController.currentURL from within set sourceURL() to
ensure that currentURL does not still refer to the previous load's
sourceURL.

First, rename `hasBeenLoaded` to `willEagerLoad`, and flip the default
from `false` to `true`.

Next, set the flag to `false` if the `FrameController` is initialized
with a `loading="lazy"` frame. Finally, set the flag to `true` once the
element appears in the viewport for the first time.
Closes [hotwired#245][]

Update the `FrameController.currentURL` from within `set sourceURL()` to
ensure that `currentURL` does not still refer to the previous load's
`sourceURL`.

[hotwired#245]: hotwired#245
@seanpdoyle seanpdoyle requested a review from sstephenson April 15, 2021 12:29
@seanpdoyle seanpdoyle added the bug Something isn't working label Apr 15, 2021
@seanpdoyle seanpdoyle closed this Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

Turbo frame navigation after following a form redirection is break when the URL has been visited before.
1 participant