Confusion over htmx events #3529
angrytongan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation for htmx:afterSwap states that
detail.eltis the swapped in element, anddetail.targetis the target of the request.The sample below prints both of these elements on a swap. In this example, both are the same; I was expecting
detail.eltto show the returned list element.Can anyone point me at where I'm going wrong?
Beta Was this translation helpful? Give feedback.
All reactions