The validateFields check of the Ant Design form does not work

use the form component of antd, the form element limit is required, and the form has the function of uploading attachments. I call an interface with ajax and assemble data including attachments with FormData. At this time, you need to set the parameter processData of ajax to false, but the check prompt of the required items cannot be displayed. Remove processData and you can prompt it.

have you ever encountered this kind of problem? when you click Save and submit, you use validateFields to verify

.

solved. It is resetFields who clears the prompt, adjusts the position, and moves it to the callback function of validateFields to display

.
Menu