Skip to content

Commit

Permalink
Merge pull request #65 from marcobeierer/main
Browse files Browse the repository at this point in the history
bugfix: fix htmx integration when innerHTML swap strategy is used
  • Loading branch information
1cg authored Dec 11, 2024
2 parents 6e09e05 + 2026d21 commit f32eeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idiomorph.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var Idiomorph = (function () {

// innerHTML, so we are only updating the children
morphChildren(normalizedNewContent, oldNode, ctx);
return oldNode.children;
return Array.from(oldNode.children);

} else if (ctx.morphStyle === "outerHTML" || ctx.morphStyle == null) {
// otherwise find the best element match in the new content, morph that, and merge its siblings
Expand Down

0 comments on commit f32eeac

Please sign in to comment.