Replies: 1 comment
-
Resolved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue: Dependent Validation Error Not Automatically Cleared
Description
When using cross-field validation with
validate
function, errors in a dependent field are not automatically cleared when the referenced field is modified.Steps to Reproduce
minValue
andmaxValue
maxValue
againstminValue
minValue = 100
,maxValue = 50
)minValue
to a value that would make the original validation pass (e.g.,minValue = 10
)maxValue
field still shows the previous errorMinimal Reproducible Example
Expected Behavior
When the referenced field (
minValue
) changes and would resolve the previous validation error, the dependent field's (maxValue
) error should be automatically cleared.Actual Behavior
The error in the dependent field remains even after the referenced field is modified to a value that would pass the validation.
Proposed Solution
Implement a mechanism to automatically re-validate and clear errors in dependent fields when their referenced fields change.
Reproduction Link
StackBlitz Demonstration
Additional Context
This issue impacts form usability, as users must manually edit the field with the persisting error even after resolving the underlying validation condition.
Beta Was this translation helpful? Give feedback.
All reactions