Open aral opened 6 months ago
I had the same issue after switching to idiomorph. Have a look at https://github.com/bigskysoftware/idiomorph/issues/24#issuecomment-1880159474. This fixed the error in my case.
@th3l0g4n Hmm, but that’s the thing, this error triggers when hx-swap-oob='morph' is not added when hx-ext='morph' is specified on the page (because, say, you want to use a different swap style).
So, basically, it happens when the plugin is specified but not used in the page and another hx-swap-oob triggers. So this is a bug with this plugin. (If the hx-swap-oob is not morph, it should not affect things at all.)
Note: I’ve now worked around this in Kitten by granularly adding the hx-ext='morph' attribute only to DOM elements where hx-swap-oob='morph' is specified.
In case it helps anyone else, here’s the relevant patch:
https://codeberg.org/kitten/app/commit/2dee2dd604eb29a237344a02894027c3832bf47a
I’m getting the following error when using idiomorph with htmx-ws:
The referenced point in htmx is:
And the place in idiomorph is:
If I can narrow it down further, I’ll update the issue.