New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field level validation must revalidate on component re-register. #3500
Comments
I experience the same issue. I have a field that is connected to a Country selection field. Which means, every time somebody changes a country the other field, that is connected to the Country selection will rerender and update his validators. Because depending on the selection the other field has to validate the postal_code depending on the country regulation. What currently happen's What happens after Unregister/Register is that all syncErrors are gone and the fields are marked as valid. Before selection with touched fields: |
Shouldn't this be closed, now that #3909 is merged? |
@atsu85 as soon as 7.4.0 is released. |
Fix released in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Are you submitting a bug report or a feature request?
It is a bug
What is the current behavior?
If you will change validation rule (or any other prop) Field will re-register itself.
What is the expected behavior?
It will re-register itself and continue behave as it might behave.
What's your environment?
7.0.4
Other information
The bug is quite simple -
I have form with 2 fields: The A and The B.
Validation Rule is simple: B must be equal A. And this is field level validation.
Then I'v change A it will call validation of B and display "SYNC_ERROR". Just after it I will provide a new validation function for B, and Field will de-register itself, wiping all the errors, and register back.
But this point it might call validation again, but it will not.
In other words - then I am providing a new field validation function to a Field - it must be called.
The text was updated successfully, but these errors were encountered: