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
shahata wants to merge 2 commits into
angular:masterfrom
shahata:async-validator-with-parsers
Closed

shahata wants to merge 2 commits into
angular:masterfrom
shahata:async-validator-with-parsers

Conversation

@shahata

@shahata shahata commented Aug 30, 2014

Copy link
Copy Markdown
Contributor

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

tbosch commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

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