Skip to content

Commit

Permalink
we want to morph text and comment nodes too, not just element nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
botandrose-machine committed Sep 25, 2024
1 parent 35a56f7 commit a363174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/morphing.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function morphElements(currentElement, newElement, { callbacks, ...option
}

export function morphChildren(currentElement, newElement) {
morphElements(currentElement, newElement.children, {
morphElements(currentElement, newElement.childNodes, {
morphStyle: "innerHTML"
})
}
Expand Down

0 comments on commit a363174

Please sign in to comment.