Skip to content

Commit 653dc1d

Browse files
authored
PasswordField AdornmentTabStop (#269)
1 parent 28cc66b commit 653dc1d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CodeBeam.MudBlazor.Extensions/Components/PasswordField/MudPasswordField.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959
else
6060
{
61-
<MudIconButton Icon="@_passwordIcon" Color="@AdornmentColor" Size="@IconSize" OnClick="AdornmentClick"></MudIconButton>
61+
<MudIconButton Icon="@_passwordIcon" Color="@AdornmentColor" Size="@IconSize" OnClick="AdornmentClick" tabindex="@(AdornmentTabStop ? 0 : -1)"></MudIconButton>
6262
}
6363
</AdornmentEnd>
6464

CodeBeam.MudBlazor.Extensions/Components/PasswordField/MudPasswordField.razor.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ public partial class MudPasswordField<T> : MudDebouncedInput<T>
3939
[Category(CategoryTypes.FormComponent.Behavior)]
4040
public bool Clearable { get; set; } = false;
4141

42+
/// <summary>
43+
/// If true, adornment button accepts tab stop. Default is false.
44+
/// </summary>
45+
[Parameter]
46+
[Category(CategoryTypes.FormComponent.Behavior)]
47+
public bool AdornmentTabStop { get; set; }
48+
4249
/// <summary>
4350
/// Button click event for clear button. Called after text and value has been cleared.
4451
/// </summary>

0 commit comments

Comments
 (0)