bigskysoftware / bigskysoftware/htmx
Preload doesn't include submit button values
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
(My apologies if this has been raised and I've missed the previous issue)
It seems, as far as I am able to reproduce, that the name and value provided on a form's submit button are not used in the URI of the preload's request, thus meaning it effectively does not fetch the correct resource, and by extension preloading does not work.
If the button lacks values, then it will preload and use the cached version, in a manner similar to what would be expected if the button had a name and value.
Another thing I noticed when trying to find a work around:
- Using `hx-get` and `hx-include` submits the preload for the nearest form (in the same manner as I am flagging), but doesn't reflect the final request.
Tested with the following HTML:
```html
Submit
```
Effective URIs:
- Preload: `/scratch.html`
- Actual: `/scratch.html?foo=bar`
(Reproduced with Firefox 141.0)
Edit: simplified example
Contributor guide
Assessment
This issue has not been assessed yet.