-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Validation does not work correctly #1606
Comments
Are you loading the angular-messages library? < script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-messages.js"></script> I've got the same problem 20 minutes ago :) |
I am seeing the same problem as well. What was odd if I implemented the md-is-error attribute, for example: md-is-error="!(model.name.length > 0)" It is working, but that shouldn't be needed. The field is getting the ng-invalid class applied even though the model value is present. Adding the above fixes that but seems a bit of a hack. |
this might be related to autofocus attribute..... let me try it with a plunkr |
ok, I haven't isolated the problem but there is definitely sequences that cause it. Something is amiss. Here is a plunkr that has instructions: I am NOT using the md-is-error in this case, which means it is using the closure of function() { And this may be the problem, since the field WITH md-is-error never shows the problem..... |
This issue began sometime after the 0.7.1 release. It looks as though it's only a problem when using the This behavior is also present in the docs for the input component, in the client name field of the errors example. |
I confirm this behavior |
+1 confirmed bug on 0.8.0 when didn't exist in 0.7.1 |
I just opened #1645, which is a more strict use case, but may be related to this one. |
+1 Behavior has changed since 0.7.1 if required is set |
It looks like this issue is fixed with the commit 747eb9c from @ThomasBurleson |
In version 0.8.0 if you install required on the input and enter a couple of characters the field will remain red.
The text was updated successfully, but these errors were encountered: