HTMX v1: after-settle event getting called on parent element #2817
-
I have a list. In that list there are items. In each of those items there is a button which sends an HTMX request and updates the item (but not the list.) Here is a condensed example of the setup:
This is also the exact same code that is returned by both The updates themselves work as expected. When I click the button some stuff happens in the backend (not reflected here), and the item is updated as expected. The My issue is that the request for the button also triggers the I also thought that this was maybe an issue with inheritance so I tried using Any idea why this is happening, and what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out. It was event bubbling. Fixed by adding
on the item request. |
Beta Was this translation helpful? Give feedback.
I figured it out. It was event bubbling. Fixed by adding
on the item request.