htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Missing value of submit button when sending data with ws-send

Open medihack opened this issue 3 years ago • 0 comments

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).

medihack avatar Jul 15 '22 15:07 medihack