Skip to content

Commit

Permalink
docs(jsx/dom): add note about text node update
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma committed Jan 16, 2024
1 parent 175de75 commit ddd75f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsx/dom/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export const build = (
if (!isNodeString(oldChild)) {
vChildrenToRemove.push(oldChild)
} else {
oldChild[0] = child[0]
oldChild[0] = child[0] // update text content
child = oldChild
}
} else if (oldChild.tag !== child.tag) {
Expand Down

0 comments on commit ddd75f9

Please sign in to comment.