ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.3k stars 1.36k forks source link

🐛[BUG] 【ProFormCheckbox.Group组件在需要将children自定义渲染时,onChange的backvalue不合法】 #8507

Closed HenryLee951020 closed 4 months ago

HenryLee951020 commented 4 months ago

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 【ProFormCheckbox.Group组件在需要将children自定义渲染时,onChange的backvalue不合法】

表单组件中使用但是子级项不用options配置

示例代码: <ProFormCheckbox.Group name="simultaneousDisplay" label="同时展示" required

{ ['1', '2', '3'].map((i) => { return {i} }) }

</ProFormCheckbox.Group>

结果:在提交表单时simultaneousDisplay不是一个数组而是我最后点击的项 https://codesandbox.io/p/sandbox/checkboxgroup-backvalueerror-cpjj3r?file=%2Fsrc%2FApp.js%3A10%2C11

📷 复现步骤

image

🏞 期望结果

💻 复现代码

© 版本信息

🚑 其他信息

github-actions[bot] commented 4 months ago

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!

github-actions[bot] commented 4 months ago

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!

GitHdu commented 1 month ago

还没修复