Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngModel): make async validators play nicely with $parsers #8861

Closed
wants to merge 2 commits into from
Closed

fix(ngModel): make async validators play nicely with $parsers #8861

wants to merge 2 commits into from

Conversation

shahata
Copy link
Contributor

@shahata shahata commented Aug 30, 2014

when an async validator resolves, we decrease the pendingCount only if the $viewValue hasn't changed in the mean time. before this commit the view value after resolve was compared with the model value before resolve instead of the view value before resolve. this caused it never to resolve when those two are different (when $parsers are defined)

when an async validator resolves, we decrease the `pendingCount` only if the `$viewValue` hasn't changed in the mean time. before this commit the view value after resolve was compared with the model value before resolve instead of the view value before resolve. this caused it never to resolve when those two are different (when `$parsers` are defined)
@tbosch
Copy link
Contributor

tbosch commented Sep 9, 2014

This was fixed by the latest commits in master. I added a variant of the tests to the test suite of inputSpec.js.

@tbosch tbosch closed this Sep 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants