-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
modal and form validation no destory #8684
Comments
if the change is not a problem for the following code, componentize the form and give the unique key,Is there a better solution?
|
I found the problem is that the |
Thank you,I now use the second method, in visible is true,The key to increase 1 set modal,So every time open the modal is rendering a different modal |
@basicfu |
@HunDunDM Really can use the way you said,Thank you |
Please provide a re-producible demo: https://u.ant.design/codesandbox-repro |
In this way can solve |
re-producible
|
@afc163 how about just add a |
Actually, I think we should add |
Can you provide an active destroy all form method? |
Please provide more details and use cases. |
Try |
Version
3.0.0
Environment
mac
Reproduction link
https://user-images.githubusercontent.com/26153901/34207207-75573d12-e5c4-11e7-9a0e-af7932d58aec.gif
Steps to reproduce
According to the official website example add modal
address
repat
1.invoke add function
2.invoke remove function
3.invoke open function
4.input value
5.invoke modal ok function
gif
code
What is expected?
invoke modal ok function after,The first input box and the second input box should be destroyed
What is actually happening?
The first input box and the second input box are not destroyed,It causes validation not to pass
How do I destroy the components that I created before?
The text was updated successfully, but these errors were encountered: