Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

invalid value is bound to model #23

Open
ronnieoverby opened this issue Apr 6, 2016 · 1 comment
Open

invalid value is bound to model #23

ronnieoverby opened this issue Apr 6, 2016 · 1 comment
Labels

Comments

@ronnieoverby
Copy link

When I my validation expression returns false, the invalid value is bound to the model, anyway. This isn't how any of the pre-canned or custom validators work. Why does it behave this way?

@TomMcQuarrieOTH
Copy link

I also noticed this. If you use ui-validate-async, the model is updated prior to the validation completing, so feasibly if the validation requires a httprequest, someone can fill in a valid value, then change it to an invalid one, and quickly hit the submit button before the validation completes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants