Fix for #2728 Toggle Password button focus

Added  tabindex="-1" to the Button control so that focus is not received and passed the the following control.
This commit is contained in:
Leigh Pointer
2023-04-05 07:51:32 +02:00
parent 2f1e386554
commit 789baf99ff
8 changed files with 14 additions and 14 deletions

View File

@ -34,7 +34,7 @@
<Label Class="control-label" For="password" HelpText="Please enter your Password" ResourceKey="Password">Password:</Label>
<div class="input-group">
<input id="password" type="@_passwordtype" name="Password" class="form-control" placeholder="@Localizer["Password.Placeholder"]" @bind="@_password" required />
<button type="button" class="btn btn-secondary" @onclick="@TogglePassword">@_togglepassword</button>
<button type="button" class="btn btn-secondary" @onclick="@TogglePassword" tabindex="-1">@_togglepassword</button>
</div>
</div>
<div class="form-group mt-2">