htmx 1.5.0 has been released!
htmx 1.5.0 Release
Iām happy to announce the 1.5.0 release of htmx.
New Features & Major Changes
- Support tracking of button clicked during a form submission
- Added the hx-request attribute, allowing you to configure the following aspects of the request
timeout- the timeout of the requestcredentials- if the request will send credentialsnoHeaders- strips all headers from the request
- Along with the above attribute, you can configure the default values for each of these via the corresponding
htmx.configproperties (e.g.htmx.config.timeout)
Improvements & Bug fixes
- Conditional polling via the hx-trigger attribute
documentis now a valid pseudo-selector on the hx-triggerfrom:argument, allowing you to listen for events on the document.- Both the
scrollandshowoptions on hx-swap now support extended syntax for selecting the element to scroll or to show, including the pseudo-selectorswindow:topandwindow:bottom.
Enjoy!