Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blazor WASM: MudTextField and browser's autocomplete

MudTextField is used to enter the login (phone number with a mask). If the browser autocompletes the saved login value in the field, it is not read when processing the input - the Value and the Text of the MudTextField remain empty. Am I doing something wrong or is it a component bug?

<MudTextField Mask="@_mask1" Adornment="Adornment.Start" AdornmentText="@($"+{_dialCode}")" Margin="Margin.Dense" Style="height:36px" FullWidth="true" ref="_txt" T="string" 
@bind-Text="_phone" Variant="Variant.Outlined" Clearable="true" InputType="InputType.Telephone"  />
like image 563
Vasily Asur Avatar asked Nov 01 '25 18:11

Vasily Asur


1 Answers

The problem is solved by using MudInput instead of MudTextField

like image 168
Vasily Asur Avatar answered Nov 04 '25 00:11

Vasily Asur