We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f84082 commit 9b7bcd8Copy full SHA for 9b7bcd8
framework/ohos/src/main/cpp/impl/renderer/native/src/components/rich_text_view.cc
@@ -92,6 +92,11 @@ void RichTextView::CreateArkUINodeImpl() {
92
void RichTextView::DestroyArkUINodeImpl() {
93
#ifdef OHOS_DRAW_TEXT
94
containerNode_ = nullptr;
95
+# ifndef OHOS_DRAW_CUSTOM_TEXT
96
+ if (textNode_) {
97
+ textNode_->ResetTextContentWithStyledStringAttribute();
98
+ }
99
+# endif
100
#endif
101
textNode_ = nullptr;
102
ClearProps();
0 commit comments