|
19 | 19 | ForId="@FieldId"> |
20 | 20 | <InputContent> |
21 | 21 | <CascadingValue Name="Standalone" Value="false" IsFixed="true"> |
22 | | - <MudInputExtended T="string" |
23 | | - @ref="InputReference" |
24 | | - @attributes="UserAttributes" |
25 | | - InputType="@_passwordInput" |
26 | | - Lines="@Lines" |
27 | | - Style="@Style" |
28 | | - Variant="@Variant" |
29 | | - TextUpdateSuppression="@TextUpdateSuppression" |
30 | | - Value="@Text" |
31 | | - ValueChanged="(s) => SetTextAsync(s)" |
32 | | - Placeholder="@Placeholder" |
33 | | - Disabled=@Disabled |
34 | | - DisableUnderLine="@DisableUnderLine" |
35 | | - ReadOnly="@ReadOnly" |
36 | | - MaxLength="@MaxLength" |
37 | | - AdornmentAriaLabel="@AdornmentAriaLabel" |
38 | | - Error="@Error" |
39 | | - ErrorId="@ErrorId" |
40 | | - Immediate="@Immediate" |
41 | | - Margin="@Margin" |
42 | | - OnBlur="@OnBlurredAsync" |
43 | | - OnKeyDown="@InvokeKeyDown" |
44 | | - OnInternalInputChanged="OnChange" |
45 | | - OnKeyPress="@InvokeKeyPress" |
46 | | - OnKeyUp="@InvokeKeyUp" |
47 | | - KeyDownPreventDefault="KeyDownPreventDefault" |
48 | | - KeyPressPreventDefault="KeyPressPreventDefault" |
49 | | - KeyUpPreventDefault="KeyUpPreventDefault" |
50 | | - HideSpinButtons="true" |
51 | | - Clearable="@Clearable" |
52 | | - OnClearButtonClick="@OnClearButtonClick" |
53 | | - Pattern="@Pattern"> |
54 | | - <AdornmentEnd> |
55 | | - @if (CustomAdornment != null) |
56 | | - { |
57 | | - @CustomAdornment |
58 | | - } |
59 | | - else |
60 | | - { |
61 | | - <MudIconButton Icon="@_passwordIcon" Color="@AdornmentColor" Size="@IconSize" OnClick="AdornmentClick" tabindex="@(AdornmentTabStop ? 0 : -1)"></MudIconButton> |
62 | | - } |
63 | | - </AdornmentEnd> |
64 | | - |
65 | | - </MudInputExtended> |
| 22 | + @if (AdornmentStart != null) |
| 23 | + { |
| 24 | + <MudInputExtended T="string" |
| 25 | + @ref="InputReference" |
| 26 | + @attributes="UserAttributes" |
| 27 | + InputType="@_passwordInput" |
| 28 | + Lines="@Lines" |
| 29 | + Style="@Style" |
| 30 | + Variant="@Variant" |
| 31 | + TextUpdateSuppression="@TextUpdateSuppression" |
| 32 | + Value="@Text" |
| 33 | + ValueChanged="(s) => SetTextAsync(s)" |
| 34 | + Placeholder="@Placeholder" |
| 35 | + Disabled=@Disabled |
| 36 | + DisableUnderLine="@DisableUnderLine" |
| 37 | + ReadOnly="@ReadOnly" |
| 38 | + MaxLength="@MaxLength" |
| 39 | + Adornment="@Adornment" |
| 40 | + AdornmentAriaLabel="@AdornmentAriaLabel" |
| 41 | + Error="@Error" |
| 42 | + ErrorId="@ErrorId" |
| 43 | + Immediate="@Immediate" |
| 44 | + Margin="@Margin" |
| 45 | + OnBlur="@OnBlurredAsync" |
| 46 | + OnKeyDown="@InvokeKeyDown" |
| 47 | + OnInternalInputChanged="OnChange" |
| 48 | + OnKeyPress="@InvokeKeyPress" |
| 49 | + OnKeyUp="@InvokeKeyUp" |
| 50 | + KeyDownPreventDefault="KeyDownPreventDefault" |
| 51 | + KeyPressPreventDefault="KeyPressPreventDefault" |
| 52 | + KeyUpPreventDefault="KeyUpPreventDefault" |
| 53 | + HideSpinButtons="true" |
| 54 | + Clearable="@Clearable" |
| 55 | + OnClearButtonClick="@OnClearButtonClick" |
| 56 | + Pattern="@Pattern"> |
| 57 | + <AdornmentStart> |
| 58 | + @AdornmentStart |
| 59 | + </AdornmentStart> |
| 60 | + <AdornmentEnd> |
| 61 | + @if (CustomAdornment != null) |
| 62 | + { |
| 63 | + @CustomAdornment |
| 64 | + } |
| 65 | + else |
| 66 | + { |
| 67 | + <MudIconButton Icon="@_passwordIcon" Color="@AdornmentColor" Size="@IconSize" OnClick="AdornmentClick" tabindex="@(AdornmentTabStop ? 0 : -1)"></MudIconButton> |
| 68 | + } |
| 69 | + </AdornmentEnd> |
| 70 | + </MudInputExtended> |
| 71 | + } |
| 72 | + else |
| 73 | + { |
| 74 | + <MudInputExtended T="string" |
| 75 | + @ref="InputReference" |
| 76 | + @attributes="UserAttributes" |
| 77 | + InputType="@_passwordInput" |
| 78 | + Lines="@Lines" |
| 79 | + Style="@Style" |
| 80 | + Variant="@Variant" |
| 81 | + TextUpdateSuppression="@TextUpdateSuppression" |
| 82 | + Value="@Text" |
| 83 | + ValueChanged="(s) => SetTextAsync(s)" |
| 84 | + Placeholder="@Placeholder" |
| 85 | + Disabled=@Disabled |
| 86 | + DisableUnderLine="@DisableUnderLine" |
| 87 | + ReadOnly="@ReadOnly" |
| 88 | + MaxLength="@MaxLength" |
| 89 | + Adornment="@Adornment" |
| 90 | + AdornmentAriaLabel="@AdornmentAriaLabel" |
| 91 | + Error="@Error" |
| 92 | + ErrorId="@ErrorId" |
| 93 | + Immediate="@Immediate" |
| 94 | + Margin="@Margin" |
| 95 | + OnBlur="@OnBlurredAsync" |
| 96 | + OnKeyDown="@InvokeKeyDown" |
| 97 | + OnInternalInputChanged="OnChange" |
| 98 | + OnKeyPress="@InvokeKeyPress" |
| 99 | + OnKeyUp="@InvokeKeyUp" |
| 100 | + KeyDownPreventDefault="KeyDownPreventDefault" |
| 101 | + KeyPressPreventDefault="KeyPressPreventDefault" |
| 102 | + KeyUpPreventDefault="KeyUpPreventDefault" |
| 103 | + HideSpinButtons="true" |
| 104 | + Clearable="@Clearable" |
| 105 | + OnClearButtonClick="@OnClearButtonClick" |
| 106 | + Pattern="@Pattern"> |
| 107 | + <AdornmentEnd> |
| 108 | + @if (CustomAdornment != null) |
| 109 | + { |
| 110 | + @CustomAdornment |
| 111 | + } |
| 112 | + else |
| 113 | + { |
| 114 | + <MudIconButton Icon="@_passwordIcon" Color="@AdornmentColor" Size="@IconSize" OnClick="AdornmentClick" tabindex="@(AdornmentTabStop ? 0 : -1)"></MudIconButton> |
| 115 | + } |
| 116 | + </AdornmentEnd> |
| 117 | + </MudInputExtended> |
| 118 | + } |
66 | 119 | </CascadingValue> |
67 | 120 | </InputContent> |
68 | 121 | </MudInputControl> |
|
0 commit comments