From eedbe6aff2af952f85cba136a1e2853aed8f7568 Mon Sep 17 00:00:00 2001 From: wangxiuxiu96 Date: Mon, 23 Jun 2025 10:28:54 +0800 Subject: [PATCH] fix:js_button Signed-off-by: wangxiuxiu96 --- frameworks/bridge/declarative_frontend/jsview/js_button.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frameworks/bridge/declarative_frontend/jsview/js_button.cpp b/frameworks/bridge/declarative_frontend/jsview/js_button.cpp index 8c99da8eeb7..d94b7ab4259 100644 --- a/frameworks/bridge/declarative_frontend/jsview/js_button.cpp +++ b/frameworks/bridge/declarative_frontend/jsview/js_button.cpp @@ -693,6 +693,9 @@ void JSButton::JsSize(const JSCallbackInfo& info) void JSButton::JsRadius(const JSCallbackInfo& info) { + if (!NG::ViewStackProcessor::GetInstance()->IsCurrentVisualStateProcess()) { + return; + } JsRadius(info[0]); } -- Gitee