-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
dynamic adding/removing form item error #423
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
Comments
https://codesandbox.io/s/1yzkwz19qq
|
Thanks for your reply! The first solution indeed helped me, but I still have a few questions about it:)
I try to downgrade to version 1.3.0 and run with old code and everything works fine, but version 1.3.1 failed. Actually I used to remove these "useless" items in the callback of
From API doc https://vuecomponent.github.io/ant-design-vue/components/form/#API , I can't find any "preserve" word in doc page, so I really didn't know it before your reply. Could you please update the doc? Thanks again! |
Versions prior to 1.3.0 did not clean up items that were no longer used, and it was a bug. The document does not specify this option, which will be supplemented later. |
Thanks for your explanation! I haven't used JSX yet, but I would try it later. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
1.3.2
Environment
Win10 x64, Chrome 71, IE 11, Vue 2.5.22
Reproduction link
Steps to reproduce
Pressing "Add field" button 3 times and the error shown in console, then you are unable to add or remove a form item. You can do nothing with it before refreshing the page.
What is expected?
the example work like a charm
What is actually happening?
the example cannot work properly
https://vuecomponent.github.io/ant-design-vue/components/form-cn/#components-form-demo-customized-form-controls
The demo in home page also has this problem.
It works great in 1.1.10 for sure. I came across the same error after I upgrade to version 1.3.2 in my project
The text was updated successfully, but these errors were encountered: