Skip to content

Commit

Permalink
revert login-form changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Nov 6, 2024
1 parent 36550d2 commit 1f3c000
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions packages/login/src/vaadin-lit-login-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
.errorMessage="${this.i18n.errorMessage.username}"
id="vaadinLoginUsername"
required
manual-validation
@keydown="${this._handleInputKeydown}"
autocapitalize="none"
autocorrect="off"
Expand All @@ -75,7 +74,6 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
.errorMessage="${this.i18n.errorMessage.password}"
id="vaadinLoginPassword"
required
manual-validation
@keydown="${this._handleInputKeydown}"
spellcheck="false"
autocomplete="current-password"
Expand Down
5 changes: 1 addition & 4 deletions packages/login/src/vaadin-login-form-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ export const LoginFormMixin = (superClass) =>
const userName = this.$.vaadinLoginUsername;
const password = this.$.vaadinLoginPassword;

userName.validate();
password.validate();

if (this.disabled || userName.invalid || password.invalid) {
if (this.disabled || !(userName.validate() && password.validate())) {
return;
}

Expand Down
2 changes: 0 additions & 2 deletions packages/login/src/vaadin-login-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
error-message="[[i18n.errorMessage.username]]"
id="vaadinLoginUsername"
required
manual-validation
on-keydown="_handleInputKeydown"
autocapitalize="none"
autocorrect="off"
Expand All @@ -86,7 +85,6 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolymerElement
error-message="[[i18n.errorMessage.password]]"
id="vaadinLoginPassword"
required
manual-validation
on-keydown="_handleInputKeydown"
spellcheck="false"
autocomplete="current-password"
Expand Down

0 comments on commit 1f3c000

Please sign in to comment.