Skip to content

Commit

Permalink
fix: adjustment of merging priority for radio disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Roc authored and yinkaihui committed Apr 26, 2024
1 parent 1e677c3 commit 88f8bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Radio/radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 88f8bb7

Please sign in to comment.