-
Notifications
You must be signed in to change notification settings - Fork 161
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
When using igx-input-group, there is no UI feedback after ReactiveForm's markAsTouched is called. #1144
Comments
@tkiryu sorry, I can't open the samples. |
@simeonoff , I'm sorry about that. Here is the first link. Here is the second link. I have fixed the links in the Steps to reproduce as well. |
@tkiryu I have just committed a fix for this. However, it requires a small change in the sample for it to work properly. Since if (!this.form.valid) {
for (let key in this.form.controls) {
this.form.controls[key].markAsTouched();
this.form.controls[key].updateValueAndValidity();
}
} Note, that it used to work previously as we had a style that was applied when angular adds ng-touched to the component's classlist, but this is no longer the case. |
I understand why we need to call
I'm a little concerned. For example, when just focusing in/out an input, |
@tkiryu, yes what you just explained is essentially the issue here and why we need to call |
@DDavidkov What I was concerned about was resolved by your additional commit. Thank you so much! |
Has this required workaround been put in public docs? |
@kdawg1406 It's not yet in the docs, but it's on the TODO list. |
@tkiryu do you have a working project you can share? |
@tkiryu the above workaround is no longer required. This sample shows the new ways to work with ReactiveForms and radio buttons. |
@kdawg1406 if the initial value of https://stackblitz.com/edit/angular-t9inrw So I think we still need to call Could you tell me your thoughts on this? By the way, here is my sample using |
@tkiryu not sure about this. You should do what you need to do to make it work. I'm just glad the UI issue was addressed. |
Description
When using igx-input-group, there is no UI feedback after ReactiveForm's
markAsTouched
is called.Steps to reproduce
Result
On the step 4, there is no UI feedback.
Expected result
There should be UI feedback.
I used igx-form-group class before and it worked well. I want igx-input-group to work as well.
The text was updated successfully, but these errors were encountered: