htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Js action is not working for swapped reponse.

Open msinankk opened this issue 2 years ago • 3 comments

Hi There, I loaded my js inside

tag and I put deffer attr. Still not affecting the js to the response, like the accordion code I wrote inside my script.

msinankk avatar Apr 25 '23 05:04 msinankk

*defer attr

msinankk avatar Apr 25 '23 05:04 msinankk

Without any details or code it's impossible to say what is going on. What does the debugger of your browser say? Are there any messages in the console?

RoToRa avatar Apr 25 '23 11:04 RoToRa

Nothing on my console, at the initial load of my webpage all js functionality will work like accordion, modal , offcanvas and so on... when htmx swap happen in any element and the element containing any modal or accordion then it will not work. when I load js on head tag with defer attribute except accoridion all will work.

msinankk avatar Apr 26 '23 03:04 msinankk