-
Notifications
You must be signed in to change notification settings - Fork 78
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
The conditional validation on required does not show until the input is edited and then emptied #532
Comments
@farahnahle would be great if you share the stackblitz example of the stated issue. |
Sure. I reproduced the issue here: Expected Result: However, what is happening is the following: |
@ajayojha Any update on this? Where you able to check the stackblitz I shared? |
@ajayojha I'm eagerly waiting for your response if there is a fix for my issue. |
@farahnahle , Sorry missed checking the provided stackblitz example. I think this is a bit complex to manage the state of dynamically created FormControl for Conditional validation, but I will draft something to make this possible. Tomorrow, I will update you here on the next course of action. |
Describe the bug
The conditional validation on required does not show until the input is edited and then emptied. I am using Nested FormGroups and the check is on a nested value.
Expected Behavior
A field to be required when another input is not empty. The error is only showing if I add a letter and delete it.
To Reproduce
https://stackblitz.com/edit/custom-validation-angular-reactive-form-with-rxweb-wljh2z?file=src/app/app.component.html
Url (stackblitz or plunker or other)
same as this issue:
https://stackoverflow.com/questions/67619122/rxweb-validation-not-automatically-setting-fields-as-required-reactive-forms-v
Package Version
@rxweb/@
The text was updated successfully, but these errors were encountered: