You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
set Form validationTrigger = "onSubmit"
add 2 fields to the form, the second field must be dependent on the first (<Form.Item name="secondItem" dependencies={["firstItem"]}>...</Form.Item>)
add a validation rule for the 2nd field (for example "required")
enter and then delete data in the second field
enter data in the first field
What is expected?
Validation for the second field is triggered only after submitting the form
What is actually happening?
Validation for the second field is triggered immediately after editing the first field (provided that the first field was touched)
Environment
Info
antd
4.6.6
React
React v16.13.1
System
Windows 7
Browser
Google Chrome 83.0.4103.61
If this behavior is initially valid, then it would be more logical to allow control over the validation of dependent fields using the 'validateTrigger' parameter in the Rule object, which will take precedence over the 'validateTrigger' parameter in the Form.
The text was updated successfully, but these errors were encountered:
Reproduction link
Steps to reproduce
What is expected?
Validation for the second field is triggered only after submitting the form
What is actually happening?
Validation for the second field is triggered immediately after editing the first field (provided that the first field was touched)
If this behavior is initially valid, then it would be more logical to allow control over the validation of dependent fields using the 'validateTrigger' parameter in the Rule object, which will take precedence over the 'validateTrigger' parameter in the Form.
The text was updated successfully, but these errors were encountered: