ui-validate icon indicating copy to clipboard operation
ui-validate copied to clipboard

invalid value is bound to model

Open ronnieoverby opened this issue 8 years ago • 1 comments

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?

ronnieoverby avatar Apr 06 '16 18:04 ronnieoverby

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.

TomMcQuarrieOTH avatar Aug 30 '16 22:08 TomMcQuarrieOTH