|
19 | 19 | ForId="@FieldId"> |
20 | 20 | <InputContent> |
21 | 21 | <CascadingValue Name="Standalone" Value="false" IsFixed="true"> |
22 | | - @if (AdornmentStart != null) |
23 | | - { |
24 | 22 | <MudInputExtended T="string" |
25 | 23 | @ref="InputReference" |
26 | 24 | @attributes="UserAttributes" |
|
54 | 52 | OnClearButtonClick="@OnClearButtonClick" |
55 | 53 | Pattern="@Pattern" |
56 | 54 | DisablePaste="@DisablePaste" |
57 | | - ShrinkLabel="@ShrinkLabel"> |
| 55 | + ShrinkLabel="@ShrinkLabel" |
| 56 | + HasAdornmentStart="@(AdornmentStart != null)"> |
58 | 57 | <AdornmentStart> |
59 | 58 | @AdornmentStart |
60 | 59 | </AdornmentStart> |
|
69 | 68 | } |
70 | 69 | </AdornmentEnd> |
71 | 70 | </MudInputExtended> |
72 | | - } |
73 | | - else |
74 | | - { |
75 | | - <MudInputExtended T="string" |
76 | | - @ref="InputReference" |
77 | | - @attributes="UserAttributes" |
78 | | - InputType="@GetPasswordInputType()" |
79 | | - Lines="@Lines" |
80 | | - Label="@Label" |
81 | | - Style="@Style" |
82 | | - Variant="@Variant" |
83 | | - TextUpdateSuppression="@TextUpdateSuppression" |
84 | | - Value="@Text" |
85 | | - ValueChanged="(s) => SetTextAsync(s)" |
86 | | - Placeholder="@Placeholder" |
87 | | - Disabled=@Disabled |
88 | | - Underline="@Underline" |
89 | | - ReadOnly="@ReadOnly" |
90 | | - MaxLength="@MaxLength" |
91 | | - Adornment="@Adornment" |
92 | | - AdornmentAriaLabel="@AdornmentAriaLabel" |
93 | | - Error="@Error" |
94 | | - ErrorId="@ErrorId" |
95 | | - Immediate="@Immediate" |
96 | | - Margin="@Margin" |
97 | | - OnBlur="@OnBlurredAsync" |
98 | | - OnKeyDown="@InvokeKeyDownAsync" |
99 | | - OnInternalInputChanged="OnChange" |
100 | | - OnKeyUp="@InvokeKeyUpAsync" |
101 | | - KeyDownPreventDefault="KeyDownPreventDefault" |
102 | | - KeyUpPreventDefault="KeyUpPreventDefault" |
103 | | - HideSpinButtons="true" |
104 | | - Clearable="@Clearable" |
105 | | - OnClearButtonClick="@OnClearButtonClick" |
106 | | - Pattern="@Pattern" |
107 | | - DisablePaste="@DisablePaste" |
108 | | - ShrinkLabel="@ShrinkLabel"> |
109 | | - <AdornmentEnd> |
110 | | - @if (CustomAdornment != null) |
111 | | - { |
112 | | - @CustomAdornment |
113 | | - } |
114 | | - else |
115 | | - { |
116 | | - <MudIconButton Icon="@GetPasswordIcon()" Color="@AdornmentColor" Size="@IconSize" OnClick="AdornmentClick" tabindex="@(AdornmentTabStop ? 0 : -1)"></MudIconButton> |
117 | | - } |
118 | | - </AdornmentEnd> |
119 | | - </MudInputExtended> |
120 | | - } |
121 | 71 | </CascadingValue> |
122 | 72 | </InputContent> |
123 | 73 | </MudInputControl> |
|
0 commit comments