Try two set checkboxgroup programmatically
The value changes and the checkboxes in the value array are checked
the checkboxes are not checked
valuePropName
of Checkbox.Group
should be value
instead of checked
, see: https://ant.design/components/checkbox/#components-checkbox-demo-group
Ant Design team use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions in Stack Overflow or Segment Fault, then apply tag antd
and react
to your questions.
You should read documentation & FAQ and search issues before ask a question, THX!
It will be better if you read smart questions(提问的智慧).
Thanks for the reply and sorry for the misusage
How about adding a clear usage example or note about when to use 'checked' or 'value' ? I have read the document, but I only find this:
This is very misleading.
Most helpful comment
valuePropName
ofCheckbox.Group
should bevalue
instead ofchecked
, see: https://ant.design/components/checkbox/#components-checkbox-demo-groupAnt Design team use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions in Stack Overflow or Segment Fault, then apply tag
antd
andreact
to your questions.You should read documentation & FAQ and search issues before ask a question, THX!
It will be better if you read smart questions(提问的智慧).