Replies: 1 comment 2 replies
|
I would guess its a error in MudExTextField try to use the content from your second sample as content of a MudExDialog <MudExDialog Visible="true"
DefaultFocus="DefaultFocus.None"
OptionsEx="new DialogOptionsEx
{
CloseButton=true,
BackdropClick=false,
Position = DialogPosition.CenterRight
}">
<TitleContent>MudExDialog+MudInputString: DefaultFocus="DefaultFocus.None", two buttons, the 2nd have AutoFocus</TitleContent>
<DialogContent>
<MudTextField @bind-Value="TextValue">Text Field 1</MudTextField>
<MudTextField @bind-Value="TextValue2" AutoFocus="true">Text Field 2 with AutoFocus</MudTextField>
</DialogContent>
</MudExDialog>If this expectation is true please report a bug for that |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I would like MudExDialog to work with
DefaultFocus.None, given that I have set an inner component withAutoFocus="true", e.g.:Nevertheless the second text field does not gain focus when the dialog is shown:
The same code using MudBlazor seems to work, i.e.:
This is with MudBlazor.Extensions 2.0.7.1, MudBlazor 7.15.0, rendermode
InteractiveServerRenderMode(prerender: false).I wonder I am doing a basic error or there is a default in MudBlazor.Extensions ;)
Thanks for your help.
Regards, Jean-Damien.
All reactions