-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hx-swap="morph:outerHTML
being treated as innerHTML
#8
Comments
Can confirm I've encountered this issue too! |
what content is being returned by |
Ah-ha! I suspect I've found the issue here -- and its a simple documentation issue. To use idiomorph with htmx you need to use the version of the library which also includes a htmx extension binding not found in the default JS file on unpkg listed in the README. Instead you need to use: https://unpkg.com/idiomorph/dist/idiomorph-ext.min.js. It would be great to include this detail somewhere in the README since I'm sure plenty of folks will be coming to this repo looking to use this with htmx. Aside: Unfortunately, htmx does not emit a warning when you |
Just to add to @mossblaser 's great answer, you'll want to set |
Hey @1cg,
when I use a hidden inner element to auto-refresh a component, I get infinitely nested elements. It seems like either the target is ignored or the modifier. Any thoughts?
When I change it to
hx-swap="outerHTML"
it works as expectedThe text was updated successfully, but these errors were encountered: