-
Notifications
You must be signed in to change notification settings - Fork 433
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
Progress bar completely missing in Rails 7.1 #1298
Comments
Progress bar appears after 500ms by default. It doesn't appear for turbo frame requests. https://turbo.hotwired.dev/reference/drive#turbo.setprogressbardelay |
Wait - it doesnt appear for TURBO FRAME requests? Why not? That seems
super odd. How can we fix that?
…On Aug 27, 2024 at 6:00:34 PM, Alex ***@***.***> wrote:
Progress bar appears after 500ms by default. It doesn't appear for turbo
frame requests.
https://turbo.hotwired.dev/reference/drive#turbo.setprogressbardelay
—
Reply to this email directly, view it on GitHub
<#1298 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAATIAQTFCC6GM5ZPGNCPNLZTTZIFAVCNFSM6AAAAABMY247ZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGY2TCMZYGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't know why. But you could use turbo-frame {
display: inline-block;
position: relative;
}
turbo-frame:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.0);
z-index: 100;
pointer-events: none;
}
turbo-frame[busy]:before {
content: "loading...";
background-color: rgba(255, 255, 255, 1);
transition-property: background-color;
transition-duration: 0.4s;
transition-delay: 0s;
} or use events to show the progress bar: document.addEventListener("turbo:before-fetch-request", (event) => {
if (event.target.nodeName === "TURBO-FRAME") {
Turbo.session.adapter.progressBar.show()
}
})
document.addEventListener("turbo:frame-load", (event) => {
Turbo.session.adapter.progressBar.hide()
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a weird one because I cant seem to find anyone else posting about this. The progress bar NEVER appears. The CSS styles are there, but there is no progress bar when clicking any turbo frame or turbo stream event.
Here's my env:
and package.json
What could be causing this? Did progress bar become an option at some point?
The text was updated successfully, but these errors were encountered: