Replies: 1 comment 1 reply
-
Alright, I investigated a bit further and looked in the source code of htmx. It seems that when The solution is to set the
The official documentation is very misleading here. I'll create an issue as the documentation should be updated, or the initialization should travel more deeply into the sub-elements. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a form with multiple submit buttons that I would like to submit to a WebSocket location using the ws extension of htmx. Unfortunately, the value of the button clicked is missing in the sent data object. Only the name of the button is added as HX-Trigger-Name. I would have also expected that the button name and value are added to the data array. How else should I find out which button in the form was clicked? And only that way a fallback without WebSockets is possible.
Example form:
Also adding
ws-send
to the buttons does not help.Beta Was this translation helpful? Give feedback.
All reactions