From b79670cb399e545e9e5332f55c5c74f38d9cd3ac Mon Sep 17 00:00:00 2001 From: shijie Date: Fri, 21 Feb 2025 14:00:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=A1=A5=E5=85=85=E5=A4=9A?= =?UTF-8?q?=E8=A1=8C=E8=BE=93=E5=85=A5=E6=A1=86onEndEdit=E3=80=81onEndSubm?= =?UTF-8?q?it=E6=96=B9=E6=B3=95=E5=9B=9E=E8=B0=83=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=96=87=E6=9C=AC=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shijie --- .../ComponentInstances/TextInputComponentInstance.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 9963a830..e38a5757 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; } -- Gitee