Skip to content

Commit

Permalink
Merge pull request #6200 from melloware/PR6197
Browse files Browse the repository at this point in the history
Fix #6197: Checkbox remove defaultChecked property
  • Loading branch information
nitrogenous authored Mar 21, 2024
2 parents 99ae3d3 + 4726774 commit de41d97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/lib/checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,14 @@ export const Checkbox = React.memo(
className: cx('input'),
name: props.name,
tabIndex: props.tabIndex,
defaultChecked: checked,
onFocus: (e) => onFocus(e),
onBlur: (e) => onBlur(e),
onChange: (e) => onChange(e),
disabled: props.disabled,
readOnly: props.readOnly,
required: props.required,
'aria-invalid': props.invalid,
checked: isChecked(),
checked: checked,
...ariaProps
},
ptm('input')
Expand Down

0 comments on commit de41d97

Please sign in to comment.