numerus/web/static
jordi fita mas 43fffb6848 Fix a swapError with data-hx-on and data-hx-swap="innerHTML"
I had a lot of errors when trying to swap an element that has data-hx-on
attribute: it would tell me that it could not swap the bloody thing and
that t.onHandlers is not an iterable.  I believe it also happened for
elements that did not have data-hx-on, but i am unsure at this point.

Apparently this is a bug introduced with version 1.9.0 of HTMx that as
of today is not yet fixed[0].

It seems that the problem that they keep the handlers created by
data-hx-on in an object, to be able to remove them afterward, but they
were looping the object with for(… of …) instead of for(… in …).

They will surely fix it in time, but since they will release a new
version, i have decided to change the minified code for now, as there
is no danger of replacing it with the new version—different file names.

[0]: https://github.com/bigskysoftware/htmx/issues/1368
2023-04-28 00:03:03 +02:00
..
fonts Remove unused Remixicon files 2023-01-31 13:17:51 +01:00
alpinejs@3.12.0.min.js Start “improving” the user interface with AlpineJS: tax selector 2023-03-14 18:07:38 +01:00
bars.svg Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
htmx@1.9.0.min.js Fix a swapError with data-hx-on and data-hx-swap="innerHTML" 2023-04-28 00:03:03 +02:00
invoice.css Add the payment method to invoices 2023-03-05 18:50:57 +01:00
numerus.css Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
numerus.js Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
numerus.svg Clean up SVG icon 2023-01-30 16:33:49 +01:00