fix 2 click issue with submit button

when a field is in focus, click on submit button requires an additional
click, because the first click to blurs the field,  second click is the
one actually trigger the click event on the submit button