Skip to content

Commit

Permalink
Merge ee86dd4 into aad38c7
Browse files Browse the repository at this point in the history
  • Loading branch information
alexberazouski committed Jan 24, 2019
2 parents aad38c7 + ee86dd4 commit c7aba66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/vaadin-login-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@
};
},
notify: true
},

/**
* If set, prevents auto enabling the component when error property is set to true.
*/
_preventAutoEnable: {
type: Boolean,
value: false
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/vaadin-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h5 part="error-message-title">[[i18n.errorMessage.title]]</h5>
}

_errorChanged() {
if (this.error) {
if (this.error && !this._preventAutoEnable) {
this.disabled = false;
}
}
Expand Down

0 comments on commit c7aba66

Please sign in to comment.