Skip to content

HTMX v1: after-settle event getting called on parent element #2817

Answered by BismuthGlass
BismuthGlass asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out. It was event bubbling. Fixed by adding

hx-on::after-settle="event.stopPropagation(); console.log('item settled')"

on the item request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BismuthGlass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant