Stelios
Stelios

Reputation: 55

MudBlazor menu not working on responsive mode

I'm trying to create a second menu, aligned at the right side of the top bar, but it's not working in responsive mode. I'm using MudBlazor 6.0.6 in a .NET6 Blazor server project Here is the MudLayout I use:

<MudThemeProvider />
<MudDialogProvider />
<MudSnackbarProvider />

<MudLayout>
    <MudAppBar Elevation="1">
        <MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
        <MudText Typo="Typo.h5" Class="ml-3">My Application</MudText>
        <MudSpacer />
        <MudMenu Icon="@Icons.Material.Filled.MoreVert" Color="Color.Inherit" AnchorOrigin="@AnchorOrigin" TransformOrigin="@TransformOrigin">
            <MudMenuItem OnClick="@LoginHandler">Login</MudMenuItem>
            @*<MudMenuItem>My account</MudMenuItem>*@
            <MudMenuItem OnClick="@LogoutHandler">Logout</MudMenuItem>
        </MudMenu>

    </MudAppBar>
    <MudDrawer @bind-Open="_drawerOpen" ClipMode="DrawerClipMode.Always" Elevation="2">
        <NavMenu />
    </MudDrawer>
    <MudMainContent>
        <MudContainer MaxWidth="MaxWidth.ExtraExtraLarge">
            
                    @Body
               
        </MudContainer>
    </MudMainContent>
</MudLayout>

Does anyone know how to deal with this issue? Thanks.

Upvotes: 4

Views: 4138

Answers (1)

It fixed with last release. Please use 6.0.10

EDIT: https://github.com/MudBlazor/MudBlazor/pull/6358 This merged PR should solve the problem and will come with next release. (6.0.10)

Upvotes: 0

Related Questions