-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Async validation sets formControl to valid even if sync validation is invalid #12709
Labels
Comments
This is still present in 2.2.0 Async validators should cancel previous validations if input has changed. |
This was referenced Nov 15, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Dec 3, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Dec 3, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Dec 4, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Dec 4, 2016
Duplicate of #8923 |
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Jan 28, 2017
…has changed Fixes angular#12709 Fixes angular#9120 Fixes angular#10074 Fixes angular#8923
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Jan 29, 2017
…has changed Fixes angular#12709 Fixes angular#9120 Fixes angular#10074 Fixes angular#8923
mhevery
pushed a commit
that referenced
this issue
Feb 2, 2017
mhevery
pushed a commit
that referenced
this issue
Feb 3, 2017
asnowwolf
pushed a commit
to asnowwolf/angular
that referenced
this issue
Aug 11, 2017
…has changed (angular#13222) Fixes angular#12709 Fixes angular#9120 Fixes angular#10074 Fixes angular#8923 PR Close angular#13222
juleskremer
pushed a commit
to juleskremer/angular
that referenced
this issue
Aug 28, 2017
…has changed (angular#13222) Fixes angular#12709 Fixes angular#9120 Fixes angular#10074 Fixes angular#8923 PR Close angular#13222
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting a ...
Current behavior
If I have a sync and a async validation on a formControl the async validation overwrites the sync validation when it comes back even if the value has changed. So if I put in something in a field that passes the sync validation the async validation triggers. However when I then change the value of the field before the last async validation have come back to something that doesn't pass the sync validation the last value async validation becomes the winning one.
Expected behavior
Probably that the async validation should be ignored if the value has changed since the request?
Minimal reproduction of the problem with instructions
http://plnkr.co/edit/MrY2Gq03dNjp8hvET3cn?p=preview
The text was updated successfully, but these errors were encountered: