File tree 1 file changed +4
-0
lines changed
client/packages/lowcoder/src/comps/comps/selectInputComp
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,9 @@ let StepControlBasicComp = (function () {
151
151
const onChange = ( index : number ) => {
152
152
if ( props . selectable == false ) return ;
153
153
const newIndex = Math . max ( 0 , index ) ;
154
+ if ( props . options [ newIndex ] ?. disabled ) {
155
+ return ;
156
+ }
154
157
setCurrent ( newIndex ) ;
155
158
if ( props . options [ newIndex ] ?. value !== undefined ) {
156
159
props . value . onChange ( newIndex + 1 + "" ) ; // Convert back to 1-based index for display.
@@ -198,6 +201,7 @@ let StepControlBasicComp = (function () {
198
201
title = { option . label }
199
202
subTitle = { option . subTitle }
200
203
description = { option . description }
204
+ disabled = { option . disabled }
201
205
status = { option . status as "error" | "finish" | "wait" | "process" | undefined }
202
206
icon = { props . showIcons && hasIcon ( option . icon ) && option . icon || undefined }
203
207
/>
You can’t perform that action at this time.
0 commit comments