bigskysoftware / bigskysoftware/htmx

response-target extension changes the hx-on::after-request error and successul flags

Open
#2,352 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

i have installed the extention and it works as expected but swapping html in the #errors divs
however, i have noticed that the event after-request object is modified in a stange way like shown in the picture
![image](https://github.com/bigskysoftware/htmx/assets/1891506/dd990b0f-c787-460e-a5d8-d2ee6afb173e)
the event.detail.failed is set to true

i followed the documentation to add the following meta tag

im basically trying to call a function based on the success or failure after the swap

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.