-
Hi, I need some help. I am doing a side project with Flask(python) + htmx(ajax library) + alpine.js(wonderful library). My alpine component is following: I'm sorry this kind of ugly presentation and code.. alpine-x-ref-after-ajax.mp4But the point is that the purple square code added to DOM after the ajax(htmx) call is working correctly Sorry for long question. But any thought or comment will be helpful for me. Thanks for reading :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It's a bit unclear since there is some abstraction there that isn't shown. I know htmx a bit. the ref will be added to the nearest parent Might be helpful if you could show the actual html output from this, since alpine only cares about that, not the templating or how you get there. if the |
Beta Was this translation helpful? Give feedback.
It's a bit unclear since there is some abstraction there that isn't shown. I know htmx a bit.
the ref will be added to the nearest parent
x-data
when the element is added.Might be helpful if you could show the actual html output from this, since alpine only cares about that, not the templating or how you get there.
if the
@click
is being registered, then Alpine has seen the elements there, so there isn't any reason to doinitTree