Question
Ant Design Form validateTrigger: Unclear validation order when using array of triggers in v5.x
Dev Cedar
0 reputation · 20 Mar 2022, 09:48 UTC
56.9K views0
Goal
Determine the deterministic order in which Ant Design Form validates fields when validateTrigger is set to an array of triggers.
Constraints
The library accepts an array but does not document the execution sequence. In complex forms this can lead to inconsistent error messages.
Questions
- Does the component guarantee a fixed order of validation when
validateTriggeris an array, or can it vary between renders? - If the order is not guaranteed, does the array order influence the sequence of validation callbacks?
- What API extensions or configuration options could be introduced to allow developers to enforce a specific validation sequence?