Skip to content

Commit

Permalink
fix: fix props name
Browse files Browse the repository at this point in the history
  • Loading branch information
benny0642 committed May 3, 2022
1 parent 984dedc commit 53f3719
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/form/src/RadioSelectOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function RadioSelectOption({
readOnly,
checked,
onChange,
...checkboxProps
...radioProps
}) {
const handleRadioChange = (event) => {
onChange(value, event.target.checked);
Expand All @@ -37,7 +37,7 @@ function RadioSelectOption({
aside={desc}
avatar={avatar}
onChange={handleRadioChange}
{...checkboxProps}
{...radioProps}
/>
</ListRow>
);
Expand All @@ -49,7 +49,7 @@ RadioSelectOption.propTypes = {
value: valueType,
avatar: PropTypes.node,
readOnly: PropTypes.bool,
// Set by <SelectList>
// Set by <RadioSelectList>
checked: PropTypes.bool,
onChange: PropTypes.func,
};
Expand Down

0 comments on commit 53f3719

Please sign in to comment.