htmx
htmx copied to clipboard
Missing value of submit button when sending data with ws-send
Discussed in https://github.com/bigskysoftware/htmx/discussions/970
When adding hx-ext="ws" (as recommended in the documentation) to a surrounding div of a form, then buttons in the form won't be tracked, and the value of a clicked button is not included in the sent data.
A full description (and example) of why this happens can be found in the discussion above.
I guess the documentation should be updated or the initialization should be changed to also include sub-elements (like forms).