Skip to content

Commit

Permalink
refactor: use correct property bindings in Lit based login form (#8335)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Dec 13, 2024
1 parent 942e856 commit 849dc36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/login/src/vaadin-lit-login-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ class LoginForm extends LoginFormMixin(ElementMixin(ThemableMixin(PolylitMixin(L
.error="${this.error}"
.i18n="${this.i18n}"
>
<form method="POST" action="${this.action}" @formdata="${this._onFormData}" slot="form">
<form method="POST" action="${ifDefined(this.action)}" @formdata="${this._onFormData}" slot="form">
<input id="csrf" type="hidden" />
<vaadin-text-field
name="username"
label="${this.i18n.form.username}"
.label="${this.i18n.form.username}"
.errorMessage="${this.i18n.errorMessage.username}"
id="vaadinLoginUsername"
required
Expand Down

0 comments on commit 849dc36

Please sign in to comment.