Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG]在Schema Form中使用'表单集合'(valueType=’formSet‘)时,父组件与子组件的initialValue没有同步赋值 #8376

Open
juneszh opened this issue Apr 30, 2024 · 0 comments

Comments

@juneszh
Copy link

juneszh commented Apr 30, 2024

🐛 bug 描述

在Schema Form中使用'表单集合'(valueType=’formSet‘)时,如果给父组件设置了initialValue,并给其下的子组件设置为必填,虽然在页面呈现上所有子组件均已填入内容,但直接提交会提示所有子组件为空;同样的,如果只给所有子组件设置initialValue,在不修改内容的前提下提交表单,在onFinish里观察到父组件并没有赋值。

📷 复现步骤

codesandbox

🏞 期望结果

formSet中的父组件与子组件的initialValue能双向同步

💻 复现代码

codesandbox

© 版本信息

  • ProComponents 版本: 2.6.50
  • 浏览器环境 Chrome 124.0.6367.63
  • 开发环境 Windows 11

🚑 其他信息

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant