Skip to content

Commit db2462f

Browse files
authored
fix antd radio not disabled when disabled set in ui schema (#4519)
1 parent 903e965 commit db2462f

File tree

1 file changed

+1
-1
lines changed
  • packages/antd/src/widgets/RadioWidget

1 file changed

+1
-1
lines changed

packages/antd/src/widgets/RadioWidget/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSc
6161
id={optionId(id, i)}
6262
name={id}
6363
autoFocus={i === 0 ? autofocus : false}
64-
disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1}
64+
disabled={disabled || (Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1)}
6565
key={i}
6666
value={String(i)}
6767
>

0 commit comments

Comments
 (0)