www/content/posts/2021-11-22-htmx-1.6.1-is-released.md
+++ title = "htmx 1.6.1 has been released!" date = 2021-11-22 [taxonomies] tag = ["posts", "announcements"] +++
I'm happy to announce the 1.6.1 release of htmx.
HX-Retarget header allows you to change the default target of returned contenthtmx:beforeSwap event now includes another configurable property: detail.isError which can
be used to indicate if a given response should be treated as an error or nothtmx:afterRequest event has two new detail properties: success and failed, allowing you to write
trigger filters in htmx or hyperscript:
on htmx:afterRequest[failed]
set #myCheckbox's checked to true
from: option in hx-trigger to support closest <CSS selector>
and find <CSS selector> formstarget sethx-ext attributes, even if no other htmx attribute is on the elementEnjoy!