This problem exists in antD 3.x version
Today, I modified the form verification, and happily finished the modification, the validateFields callback function did not execute, I searched baidu, the first article solved this problem, attached link again thank you blogger
My code is as follows
This is the custom validation of the write
This is the submit form trigger validation methodThe result is that this callback function does not perform any of the above code, and does nothing after verification. Nocallback
, but inantd
,Custom validation must be invoked
, so the callback function cannot be executed
The customized verification is as follows
I added one more that passed the checkcallback
Problem solved