Antd UI-> select drop-down how to verify that this field is required for validateField with lableInValue,form set?

as detailed in the title:

react project, which refers to the antd UI library, uses form"s validateField check field to submit the form if it is required, but there is a select form,

set labelInValue, so that validateField cannot verify that this field is required . Because did not fill in this field , the form submitted an empty pair

.

elephant, so it cannot be verified.

the following figure shows the validateField inspection of form, from which you can see the above summary. How to verify that the select of lableInValue is required for this ?


God, have you solved this problem? ask

Menu