Replies: 2 comments
-
|
Also, I found out that the following happens too. After the successful call of When the The When I hover in the dev tools the Which means (I think) that the So what could happen is that the <form id="my-form" hx-trigger="submit,input changed delay:500ms from:#otp" hx-swap="morph" hx-ext="alpine-morph,test-morph">
<template x-if="some-condition">
<input x-init="htmx.process($el); htmx.process(htmx.find('#my-form'));" type="text" id="otp" />
</template>
</form> |
Beta Was this translation helpful? Give feedback.
-
|
I removed the The reason why the subsequent calls to the Of course, deleting the |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I use the
alpine-morphextension. When the swap is set tomorphit triggers the extension. If the response containshtmxattributes they won't work. In order to make them work, I'll have to call thehtmx.process. In order to do that, I created the following extension.The problem with that is that it's always called for all type of swaps. How can I avoid unnecessary calls to
htmx.process? I mean, in other methods likeisInlineSwapandhandleSwapI have the swap style. I looked for theswapStyleinevtbut I couldn't find it.Beta Was this translation helpful? Give feedback.
All reactions