Description
While an async validator is running, the control status is PENDING, but igxInput shows the invalid state and style. The user sees an error before validation has finished. Happens on master.
Framework
Angular
Angular Version
22.1.x
Ignite UI for Angular Version
22.2.x
Component / Area
Input Group
Browser
Chrome
Operating System
Windows
Command Not Working
No response
Steps to Reproduce
- Add the following to a dev sample:
public form = new FormGroup({
name: new FormControl('', {
validators: [Validators.maxLength(100)],
asyncValidators: () => new Promise(resolve => setTimeout(() => resolve(null), 2000))
})
});
<form [formGroup]="form">
<igx-input-group>
<input igxInput formControlName="name" />
</igx-input-group>
</form>
- Run the sample.
- Type into the input and blur it.
- Watch the input during the 2 seconds the async validator runs.
Actual Result
The input shows the invalid style while the status is PENDING.
Expected Result
The input stays in its normal state while pending and only shows the invalid style if the validator returns errors.
Reproduction URL
No response
Attachments
No response
Description
While an async validator is running, the control status is
PENDING, butigxInputshows the invalid state and style. The user sees an error before validation has finished. Happens on master.Framework
Angular
Angular Version
22.1.x
Ignite UI for Angular Version
22.2.x
Component / Area
Input Group
Browser
Chrome
Operating System
Windows
Command Not Working
No response
Steps to Reproduce
Actual Result
The input shows the invalid style while the status is
PENDING.Expected Result
The input stays in its normal state while pending and only shows the invalid style if the validator returns errors.
Reproduction URL
No response
Attachments
No response