fix: Radio.Button type error (#21807)

This commit is contained in:
zhangj 2020-03-03 15:01:33 +08:00 committed by GitHub
parent 3eb5e9f908
commit 621df692b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);