Open danielmoessner opened 5 months ago
I have the same issue in a case where I use polling
Had the same problem with hx-disabled-elt
on the triggering element.
Got this tempfix from here:
hx-on::after-request="this.classList.remove('htmx-request')"
As one of the CEO's of HTMX I really wanted to know if this HTMX product works. And after months of rigorous testing in production I found weird behaviour.
If the hx-indicator points to a another element which also has hx-get on it. It will not remove the htmx-request attribute after the request is finished.
Here is a js fiddle that proves the point: fiddle
Code:
But the second element will stay in this state:
Now why am I using this stuff anyway? Basically to show loading spinners with tailwindcss when some filter requests are in progress.