ant-design Checkbox.Group does not render checked from Form initialValues

sycxhyv7  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(63)

Steps to reproduce

Create a form witha checkbox group. Generate a initiaValues from an external hook, and use useMemo to generetate the checkbox group options.

What is expected?

Is expected to render the checkbox with the value checked.

What is actually happening?

The value shows unchecked
| Environment | Info |
| ------------ | ------------ |
| antd | 5.20.2 |
| React | react 18.3.1 |
| System | Linux |
| Browser | Chrome |

when I submit it sends the value that I`m expecting. Giving an impression that you need to check the value

相关问题