The ngModel changes we're triggered at different times for the input and
the select.
Example:
1) Type some text 101 characters long.
2) Change the Select to 1:
3) c.$setValidity('maxCharacter', false); is run on the select
4) Type some text 99 characters long:
5) c.$setValidity('maxCharacter', true); is run on the input but not on the
select that is still with $valid == false
I think this is a fix:
http://plnkr.co/edit/HRLxerAt1lvhTInHhDXh?p=preview
I just changed the scope.$watch(attrs.ngModel
for attrs.$observe('validateMessageCharacter'
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.