Reputation:
In Antd Design checkbox.group defaultcheck not happen , Below is the link
https://codesandbox.io/s/m41yml491p
Upvotes: 2
Views: 6193
Reputation: 14927
You need to set the defaultValue
on the Checkbox.Group
, like so:
<Checkbox.Group style={{ width: '100%' }} onChange={onChange} defaultValue="A">
Upvotes: 5