MudBlazor / MudBlazor

Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
http://mudblazor.com
MIT License
8.14k stars 1.28k forks source link

Problem in menu and popups in default template in .net 8 #8539

Closed hamidnoahdi closed 7 months ago

hamidnoahdi commented 7 months ago

Bug type

Component, Docs (mudblazor.com)

Component name

MudLayout

What happened?

By installing the "MudBlazor.Templates" and creating a project with this template, the toggle for nav menu not working, also the dialogs and messages are not opened in center of screen, they are opened in center of content.

Expected behavior

Dialogs and messages open in middle of screen and nav toggle button works fine.

Reproduction link

https://github.com/MudBlazor

Reproduction steps

Just create a project with template and run it.

image

Relevant log output

No response

Version (bug)

6.19.1

Version (working)

No response

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

On what operating system are you experiencing the issue?

Windows

Pull Request

Code of Conduct

Anu6is commented 7 months ago

You need to be using an interactive render mode in order for the menu toggles to work.

hamidnoahdi commented 7 months ago

You need to be using an interactive render mode in order for the menu toggles to work.

Can you provide an example where to add it? What about the message and dialogs that are not opened in center of screen when nav menu is displayed? I was thinking it is considered in the template. Thanks

Anu6is commented 7 months ago

The template has multiple options (just like the Blazor Web App Template). You need to select if you are using Interactive Server, Webassembly or Auto. If not, the default does not have interactivity.

see - https://github.com/MudBlazor/Templates?tab=readme-ov-file#installation

hamidnoahdi commented 7 months ago

The template has multiple options (just like the Blazor Web App Template). You need to select if you are using Interactive Server, Webassembly or Auto. If not, the default does not have interactivity.

see - https://github.com/MudBlazor/Templates?tab=readme-ov-file#installation

Thanks, It worked, I just did not noticed to other commands and just applied the one in document.