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
When submitting a form to a frame with advance action the frame's busy state is not cleared and committed to history. Navigating back the frame will then appear busy.
Is this the intended behavior?
A small reproducer:
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<metaname="turbo-refresh-method" content="morph"><title>Turbo reproducer</title><scriptsrc="https://cdn.jsdelivr.net/npm/@hotwired/[email protected]/dist/turbo.es2017-umd.min.js"></script><style>
html { font-family: sans-serif; }
turbo-frame { display: block; margin-top: 2em; padding: 1em; }
turbo-frame[aria-busy="true"] { background-color: lightblue; }
</style></head><body><turbo-frameid="top-frame" data-turbo-action="advance"><p>This frame is fine.</p><formmethod="get" data-turbo-frame="_top"><inputtype="hidden" value="submitted" name="top-frame" />
<buttontype="submit">Submit [target=_top]</button></form></turbo-frame><turbo-frameid="busy-frame" data-turbo-action="advance"><p>This frame will be busy on history back navigation.</p><formmethod="get" data-turbo-frame="busy-frame"><inputtype="hidden" value="submitted" name="busy-frame" />
<buttontype="submit">Submit [target=busy-frame]</button></form></turbo-frame></body></html>
The text was updated successfully, but these errors were encountered:
It's not only the busy state, by the way. Form submit elements stay disabled. This gets complicated pretty quickly when submitting forms with action="get" and history navigation.
When submitting a form to a frame with
advance
action the frame's busy state is not cleared and committed to history. Navigating back the frame will then appear busy.Is this the intended behavior?
A small reproducer:
The text was updated successfully, but these errors were encountered: