Finally dug into this a bit. It appears that htmx:responseError is not fired on the element. However, htmx:error does fire, so I was able to do something like the following:
@htmx:error="(evt) => myHtmxErrorFunction(evt)"
This generic error event is currently undocumented, and I need to dig a little more to find out what events are dispatched to the element.
I think HTMX will need a PR or two in order to get things to make sense. htmx:sendError and htmx:responseError should definitely be fired on the elemtn.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Finally dug into this a bit. It appears that
htmx:responseErroris not fired on the element. However,htmx:errordoes fire, so I was able to do something like the following:@htmx:error="(evt) => myHtmxErrorFunction(evt)"This generic
errorevent is currently undocumented, and I need to dig a little more to find out what events are dispatched to the element.I think HTMX will need a PR or two in order to get things to make sense.
htmx:sendErrorandhtmx:responseErrorshould definitely be fired on the elemtn.