How does htmx reapply event listeners to HTML coming from the server via AJAX requests? #3431
Unanswered
VinnyVicious
asked this question in
Q&A
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.
-
For example: let's say that I make an AJAX request that replaces an entire
and that table itself has buttons that I have addEventListener on. How can I repply those after htmx has replaced the content, in an efficient way? I'm basically having to reapply manually onhtmx:afterSwap.Beta Was this translation helpful? Give feedback.
All reactions