diff --git a/frameworks/bridge/declarative_frontend/jsview/js_button.cpp b/frameworks/bridge/declarative_frontend/jsview/js_button.cpp index 8c99da8eeb70c502c6b8e9998234842279a92227..d94b7ab425952bbd8adf3949524b96e6d84f7ec4 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]); }