-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Form.List 中的某一项删除后,其他字段也被意外影响了 #5609
Labels
Comments
<Form.Item
+ isListField
name={[index, 'checkConfig']}
label={`"bug"-${index}`} 加上这个属性后就正常了。需要组件内部处理下 |
噢原来是这样~还有个内部 API @IronKinoko 你有兴趣来提个 PR 嘛 |
我看了 |
这个感觉不好改😳 要么就在 readme 里头加个提醒? 要么就基于 再要么就得大改 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of antd-mobile
5.22.0
Operating system and its version
Others
Browser and its version
Chrome
Sandbox to reproduce
https://stackblitz.com/edit/react-ts-ufnhw9?file=App.tsx
What happened?
复现方法是:
预期行为:
点击删除之后,第三项的值保持不变,仅第二项被删除掉
额外一点补充:
把 Form 上的 preserve={false} 去掉就行为正常了
疑似 rc-field-form 的问题
Relevant log output
No response
The text was updated successfully, but these errors were encountered: