angular-validator icon indicating copy to clipboard operation
angular-validator copied to clipboard

Success function inappropriately called before 'blur' event

Open dlsso opened this issue 10 years ago • 1 comments

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!

dlsso avatar Jan 10 '15 17:01 dlsso

Same here.

kxgio avatar Nov 11 '16 17:11 kxgio