late-king-98305
11/29/2021, 2:28 PMmysterious-toddler-20573
11/29/2021, 3:36 PMstocky-sundown-96428
11/29/2021, 3:52 PM<form id="myform" hx-post=...>
</form>
<button type="submit" form="myform">Save</button>
I am having an issue where the POST is not triggered. I could swear this was working before, but probably I'm missing something. Any hints?stocky-sundown-96428
11/29/2021, 3:59 PMtall-dinner-62086
11/29/2021, 4:05 PMgorgeous-ghost-95789
11/29/2021, 4:36 PMgray-morning-3453
11/29/2021, 4:42 PMtall-dinner-62086
11/29/2021, 4:45 PMgray-morning-3453
11/29/2021, 4:52 PMmysterious-toddler-20573
11/29/2021, 4:58 PMstocky-sundown-96428
11/29/2021, 5:40 PM@click="isLoading = true" meant to hide the form while submitting.
Looks like this was hiding the form before htmx was able to submit it.
Again, I only saw this behavior on Chrome. Firefox handled it nicely. Looks like the issue came with a recent update from Alpine 2.x to 3.x.
Not sure what is causing it, console is clean...
Either way, moving the above event handler to the <form> itself as @submit="isLoading = true" seems to solve it.
Just a normal monday...user
11/29/2021, 6:09 PMuser
11/29/2021, 6:11 PMuser
11/29/2021, 6:44 PMthousands-whale-33749
11/29/2021, 10:03 PMthousands-whale-33749
11/29/2021, 10:04 PMmysterious-toddler-20573
11/29/2021, 10:09 PMlate-king-98305
11/29/2021, 10:09 PMlate-king-98305
11/29/2021, 10:10 PMadamant-exabyte-92636
11/30/2021, 12:41 AMadamant-exabyte-92636
11/30/2021, 1:25 AMgray-morning-3453
11/30/2021, 4:41 AMcold-computer-43196
11/30/2021, 4:57 AMbland-coat-6833
11/30/2021, 8:00 AMbland-coat-6833
11/30/2021, 8:03 AMstocky-dentist-80693
11/30/2021, 9:05 AMgorgeous-airport-54386
11/30/2021, 9:07 AMgorgeous-airport-54386
11/30/2021, 9:08 AMtall-dinner-62086
11/30/2021, 9:47 AMbland-coat-6833
11/30/2021, 10:06 AM