Browse Source

fix: Radio.Button type error (#21807)

pull/21818/head
zhangj 5 years ago
committed by GitHub
parent
commit
621df692b3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/radio/radioButton.tsx

2
components/radio/radioButton.tsx

@ -19,7 +19,7 @@ const RadioButton = (props: RadioButtonProps) => {
radioProps.checked = props.value === radioGroupContext.value;
radioProps.disabled = props.disabled || radioGroupContext.disabled;
}
return <Radio prefixCls={prefixCls} {...radioProps} />;
return <Radio prefixCls={prefixCls} {...radioProps} type="radio" />;
}}
</ConfigConsumer>
);

Loading…
Cancel
Save