From 4859b5003c50ae045d18416a848439f11cbe3fc5 Mon Sep 17 00:00:00 2001 From: Faran Javed Date: Wed, 30 Apr 2025 00:57:35 +0500 Subject: [PATCH] [FIX]: #1634 Step Control click --- .../lowcoder/src/comps/comps/selectInputComp/stepControl.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx b/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx index f8c916404..ca24b7492 100644 --- a/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx +++ b/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx @@ -151,6 +151,9 @@ let StepControlBasicComp = (function () { const onChange = (index: number) => { if (props.selectable == false) return; const newIndex = Math.max(0, index); + if (props.options[newIndex]?.disabled) { + return; + } setCurrent(newIndex); if (props.options[newIndex]?.value !== undefined) { props.value.onChange(newIndex + 1 + ""); // Convert back to 1-based index for display. @@ -198,6 +201,7 @@ let StepControlBasicComp = (function () { title={option.label} subTitle={option.subTitle} description={option.description} + disabled={option.disabled} status={option.status as "error" | "finish" | "wait" | "process" | undefined} icon={props.showIcons && hasIcon(option.icon) && option.icon || undefined} />