You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
AngularJS 1.3 introduced the option to update the model value on blur. This causes the logic in valdrInputDirective to fail because the blur handler is called before the model value has been updated/validated. The solution for #44, where probably a new directive for form groups will be introduced, could also fix this issue.
some pseudo-code:
valdrFormGroupdirectivevarinputs=[];$watch(inputs,function(){if(input.wasBlurred&&input.isDirty||touched&&input.invalid){addClass('dirty-blurred');}}setBlurred(input){// keeps the state for the given input}valdrInputrequiresvaldrFromGroupinput.on('blur',function(){valdrFormGroup.setBlurred(this);this.$blurred=true;// OK? good idea to add or flags on ngModel? or use valdrBlurred?});
The text was updated successfully, but these errors were encountered:
AngularJS 1.3 introduced the option to update the model value on blur. This causes the logic in valdrInputDirective to fail because the blur handler is called before the model value has been updated/validated. The solution for #44, where probably a new directive for form groups will be introduced, could also fix this issue.
some pseudo-code:
The text was updated successfully, but these errors were encountered: