You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When replacing form control which has async validator the status from statusChange stays PENDING #20424
changed the title [-][Forms] When replacing control which has async validator the status from statusChange stays PENDING[/-][+]When replacing form control which has async validator the status from statusChange stays PENDING[/+]on Nov 15, 2017
This issue still exists for me in ng v. 6.0.5. I registered myself to the statusChanges event and it is not fired for the result. I only get the notification for the transition to pending.
In essence this makes it currently quiet hard to use the async validator properly. Are there already some straight forward workarounds?
I have the same problem but with addControl so on our form after submitting we are adding a new details on the form, we're creating a new attribute, like after submit we have form.addControl('name', new FormControl('')) but when this is being invoke the async validation from a control will be triggered and the whole form gets a status of pending and invalid@dzonatan same same issue.
Activity
[-][Forms] When replacing control which has async validator the status from statusChange stays PENDING[/-][+]When replacing form control which has async validator the status from statusChange stays PENDING[/+]jsdevtom commentedon Jun 11, 2018
What happens when you listen to the control itself like so:
?
rdnscr commentedon Jun 19, 2018
This issue still exists for me in ng v. 6.0.5. I registered myself to the statusChanges event and it is not fired for the result. I only get the notification for the transition to pending.
In essence this makes it currently quiet hard to use the async validator properly. Are there already some straight forward workarounds?
Fix issue with angular form not reporting status change.
5 remaining items
suspectpart commentedon Dec 4, 2019
What about this issue? We still have trouble with this behavior. Is a fix anywhere near?
dzonatan commentedon Dec 4, 2019
A fix is waiting to be reviewed/merged at #20806 for two years already.
Core team simply does not care about issues with forms.
Same goes with #18575
suspectpart commentedon Dec 4, 2019
@kara @jasonaden Since you added labels to this issue: any prospect of having the pull request reviewed and merged eventually?
artoodeeto commentedon Dec 10, 2019
I have the same problem but with
addControlso on our form after submitting we are adding a new details on the form, we're creating a new attribute, like after submit we haveform.addControl('name', new FormControl(''))but when this is being invoke the async validation from a control will be triggered and the whole form gets a status ofpendingandinvalid@dzonatan same same issue.fix(forms): ensure to emit `statusChanges` on subsequent value update…
angular-automatic-lock-bot commentedon Oct 2, 2020
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.