From 22f521cf72ae492159201601843f2387bacf7f96 Mon Sep 17 00:00:00 2001 From: Katherine Date: Mon, 31 Mar 2025 10:25:26 +0800 Subject: [PATCH] fix: submit and refresh buttons not displaying icon-only mode correctly (#6592) --- .../core/client/src/schema-component/antd/action/Action.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/action/Action.tsx b/packages/core/client/src/schema-component/antd/action/Action.tsx index 22a168b62b..e759e9ed59 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.tsx @@ -559,6 +559,7 @@ const RenderButtonInner = observer( designerProps, title, isLink, + onlyIcon, ...others } = props; const debouncedClick = useCallback( @@ -602,7 +603,7 @@ const RenderButtonInner = observer( type={type === 'danger' ? undefined : type} title={actionTitle} > - {actionTitle && ( + {!onlyIcon && actionTitle && ( {actionTitle}