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
As I understand it, hx-boost is meant only to replace standard browser requests with htmx ajax ones.
When using method="dialog" or formmethod="dialog" the browser doesn't issue a request, so hx-boost shouldn't to intervene.
Example:
<dialogopen><formhx-boost="true" method="POST" action="create"><h1>Create a new thing</h1><p><label>
Name:
<inputtype="text" name="name"></label></p><p><button>Create</button><buttonformmethod="dialog" formnovalidate>Cancel</button></p></form></dialog>
When the cancel button is pressed, this will issue a request contrary to browser behaviour.
The text was updated successfully, but these errors were encountered:
There was a recent-ish related issue on the topic of formmethod="dialog" (#1866), not specific to boosted forms. The linked pull request changed the way HTMX handles it by having it send a POST request rather than an invalid DIALOG request. While that is an improvement of sorts, I think it would be more intuitive to follow the spec and close the dialog without sending a request.
As I understand it, hx-boost is meant only to replace standard browser requests with htmx ajax ones.
When using
method="dialog"
orformmethod="dialog"
the browser doesn't issue a request, so hx-boost shouldn't to intervene.Example:
When the cancel button is pressed, this will issue a request contrary to browser behaviour.
The text was updated successfully, but these errors were encountered: