I am using directives to validate user input upon blur events. You can view the code in action on this plunkr:
http://plnkr.co/edit/avEJ2xfLfz6ihM3DwLyB?p=preview (The first field validates email addresses and the second field takes 'yes' as valid input)
While the validation is working, there seems to be an issue where the allowValidation() function needs to be triggered twice when clicking the submit button.
After some investigation, I found that there might be a conflict between the blur event and the button click event; it appears that when one of the text fields has an ongoing blur event, the button only registers the blur instead of the click.
Is there a way to prioritize the click event over the blur event? I am calling the validation function on both events.