angular-validator
angular-validator copied to clipboard
Success function inappropriately called before 'blur' event
When registering a rule I can set invoke: 'blur',
and error: function() {...}
and the error function is only called on blur. This is the desired behavior. However, when success: function() {...}
is set it gets called not only on blur but also immediately when a key is pressed.
This means that if a field gets a valid value and is changed to an invalid value, success will still show. Then the error will show on blur.
It looks like fixes may be some time in coming, so any simple workaround would also be appreciated. Thanks!
Same here.