Disable autocorrect and autocapitalize for login/register (#771)

This commit is contained in:
Leendert de Borst
2025-05-06 22:50:19 +02:00
parent b705263144
commit a1dd44d8fc
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ else
<DataAnnotationsValidator/>
<div>
<label asp-for="Input.Email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Your username or email</label>
<InputTextField id="email" @bind-Value="_loginModel.Username" type="text" placeholder="name / name@company.com"/>
<InputTextField id="email" @bind-Value="_loginModel.Username" type="text" placeholder="name / name@company.com" autocapitalize="off" autocorrect="off"/>
<ValidationMessage For="() => _loginModel.Username"/>
</div>
<div>

View File

@@ -31,7 +31,7 @@
<div class="space-y-4">
<div>
<EditFormRow Id="username" Label="Username" @bind-Value="Username" Placeholder="Enter your desired username or email" OnFocus="@OnUsernameInputFocus" />
<EditFormRow Id="username" Label="Username" @bind-Value="Username" Placeholder="Enter your desired username or email" OnFocus="@OnUsernameInputFocus" autocapitalize="off" autocorrect="off" />
@if (_isValidating)
{
<div class="mt-2 text-sm text-gray-600 dark:text-gray-400">Validating username...</div>