From 88f8bb7b5beecc3f88e71fe65c601568135b25da Mon Sep 17 00:00:00 2001 From: lixuepeng <18365206692@163.com> Date: Thu, 25 Apr 2024 19:18:33 +0800 Subject: [PATCH] fix: adjustment of merging priority for radio disabled state --- components/Radio/radio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Radio/radio.tsx b/components/Radio/radio.tsx index 02b9ee23d6..2831a69dfb 100644 --- a/components/Radio/radio.tsx +++ b/components/Radio/radio.tsx @@ -22,7 +22,7 @@ function Radio(baseProps: RadioProps) { if (context.group) { mergeProps.checked = context.value === props.value; - mergeProps.disabled = !!(context.disabled || props.disabled); + mergeProps.disabled = 'disabled' in props ? props.disabled : context.disabled; } const { disabled, children, value, style, className, ...rest } = mergeProps;