diff --git a/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextInputComponentInstance.cpp b/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextInputComponentInstance.cpp index 9963a830eba72f6432be74f5e414689f1095e6af..e38a57571276738b962f274d15917a4a3ba0d879 100644 --- a/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextInputComponentInstance.cpp +++ b/tester/harmony/react_native_openharmony/src/main/cpp/RNOHCorePackage/ComponentInstances/TextInputComponentInstance.cpp @@ -159,7 +159,9 @@ TextInputComponentInstance::getTextInputMetrics() { textInputMetrics.contentSize.width = this->m_contentSizeWidth; textInputMetrics.contentSize.height = this->m_contentSizeHeight; textInputMetrics.zoomScale = 1; - textInputMetrics.text = m_textInputNode.getTextContent(); + textInputMetrics.text = m_multiline + ? m_textAreaNode.getTextContent() + : m_textInputNode.getTextContent(); return textInputMetrics; }