Closed checketts closed 3 months ago
I just checked and the htmx documentation indicates that the current (comma delimited) formatting should be supported.
So I'll double check the HTMX handling to determine what is missing
OK turns out I needed to upgrade our HTMX version to a more recent version to handle the comma delimited approach. (Not supported in 1.8.0, but was added in 1.9.4)
I found a regression when I upgrade from a very old version of this library (something like 0.8) to v3.4.1.
When returning an
HtmxResponse
with multiple triggers (that don't include any data), the format is now incorrect.Old (correct) header:
Hx-Trigger {"trigger1":null,"trigger2":null}
New (incorrect):
Hx-Trigger trigger1, trigger2
Current workaround add some data to force the correct formatting:
I'll look into the root cause and try to create a fix and unit test.