From 930986f294e727d023c4d9996cca1e8840d7652e Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 29 Apr 2024 22:04:29 +0800 Subject: [PATCH] =?UTF-8?q?Description:=20=E5=9B=9E=E9=80=80js=5Ftextfield?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E5=91=8A=E8=AD=A6=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E9=81=BF=E5=85=8Dxts=E5=A4=B1=E8=B4=A5=20Iss?= =?UTF-8?q?ueNo:=20https://gitee.com/openharmony/arkui=5Face=5Fengine/issu?= =?UTF-8?q?es/I9KSOU=20Feature=20or=20Bugfix:=20Bugfix=20Binary=20Source:N?= =?UTF-8?q?o=20Signed-off-by:=20chenjiafeng=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/bridge/declarative_frontend/jsview/js_textfield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/bridge/declarative_frontend/jsview/js_textfield.cpp b/frameworks/bridge/declarative_frontend/jsview/js_textfield.cpp index 1c3bed52bef..62d33211b2c 100644 --- a/frameworks/bridge/declarative_frontend/jsview/js_textfield.cpp +++ b/frameworks/bridge/declarative_frontend/jsview/js_textfield.cpp @@ -346,7 +346,7 @@ void JSTextField::SetLineBreakStrategy(const JSCallbackInfo& info) void JSTextField::SetInputStyle(const JSCallbackInfo& info) { - if (info.Length() < 1 || !info[0]->IsObject()) { + if (info.Length() < 1) { return; } auto styleString = info[0]->ToString(); -- Gitee