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 }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
In brief, setting the value of an input field X using $setViewValue("somevalue") and then running $render() when X uses debounce or an async validator, only updates the actual visible value of X if it is presently in a valid state. If it begins (or turns into) an invalid state, the actual visible value is blanked out on the next call to $setViewValue+$render, rather than set to what was passed to $setViewValue..
A plunkr demonstrating this is here (the first input will set the second one on blur, and in the top case the second one has a 1 sec async validation attached so you'll see a model update 1 second after the blur, but not a view update. If you remove the async validator it works as expected):