diff --git a/packages/hippy-vue-next/src/runtime/text/hippy-text.ts b/packages/hippy-vue-next/src/runtime/text/hippy-text.ts index 2c8f6690fc8..9a2f619b6ed 100644 --- a/packages/hippy-vue-next/src/runtime/text/hippy-text.ts +++ b/packages/hippy-vue-next/src/runtime/text/hippy-text.ts @@ -34,11 +34,14 @@ export class HippyText extends HippyNode { super(NodeType.TextNode, ssrNode); this.text = text; this.data = text; + + // text nodes do not need to be inserted into Native + this.isNeedInsertToNative = false; } public setText(text: string): void { this.text = text; - if (this.parentNode && this.nodeType === NodeType.ElementNode) { + if (this.parentNode && this.parentNode.nodeType === NodeType.ElementNode) { (this.parentNode as HippyElement).setText(text); } }