Fix login issue on FireFox (#2860)

This commit is contained in:
Jason Hu 2019-02-27 14:24:26 -08:00 committed by Paulus Schoutsen
parent bed257a4eb
commit 00c08a09db

View File

@ -94,7 +94,7 @@ class HaAuthFlow extends localizeLiteMixin(PolymerElement) {
this.addEventListener("keypress", (ev) => { this.addEventListener("keypress", (ev) => {
if (ev.keyCode === 13) { if (ev.keyCode === 13) {
this._handleSubmit(); this._handleSubmit(ev);
} }
}); });
} }
@ -205,7 +205,8 @@ class HaAuthFlow extends localizeLiteMixin(PolymerElement) {
); );
} }
async _handleSubmit() { async _handleSubmit(ev) {
ev.preventDefault();
if (this._step.type !== "form") { if (this._step.type !== "form") {
this._providerChanged(this.authProvider, null); this._providerChanged(this.authProvider, null);
return; return;