Skip to content

Commit

Permalink
Disable component before fire any event (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexberazouski committed Dec 5, 2018
1 parent 9d6948a commit 65420f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vaadin-login.html
Expand Up @@ -133,6 +133,7 @@ <h5>[[i18n.errorMessage.title]]</h5>
}

this.error = false;
this.disabled = true;
if (this.action == null) {
const eventDetails = {
bubbles: true,
Expand All @@ -146,8 +147,6 @@ <h5>[[i18n.errorMessage.title]]</h5>
} else {
this.$.loginForm.submit();
}

this.disabled = true;
}

_forgotPassword() {
Expand Down

0 comments on commit 65420f3

Please sign in to comment.