Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle Icon is not visible when interactive render mode is auto #480

Open
Emad-Eddin opened this issue Nov 3, 2024 · 2 comments
Open

Toggle Icon is not visible when interactive render mode is auto #480

Emad-Eddin opened this issue Nov 3, 2024 · 2 comments

Comments

@Emad-Eddin
Copy link

When createing a new project and selecting interactive render mode as auto. The burger toggle button is not visible. Also when the screeen size is reduced the side menu disappears and it can't be shown again.

@Emad-Eddin
Copy link
Author

I'm quite surprised that there haven't been any comments or answers to my question so far. Is no one else encountering the same issue? Simply create a web app using auto render mode with per-page interactivity, reduce the page size, and the left navigation bar disappears. On smaller screens, it becomes inaccessible! This renders the template useless!!

@ScarletKuro
Copy link
Member

selecting interactive render mode as auto

Using global interactive auto mode
works

mode with per-page interactivity

If you are using the per-page configuration, then this behavior is intentional. When you use the per-page configuration, your root (including the MainLayout, where the drawer lives) doesn't have any interactive mode and works as static SSR. As a result, we deliberately removed the button, since it wouldn't function anyway as shown below.
notwork

This is why our recommendation is to use the global mode, as it is more user-friendly for most developers. The per-page configuration is more advanced, and requires a deeper understanding of how it works under the hood.
If you still want to use the per-page configuration and have the drawer, you'll need to implement this workaround that uses JavaScript: link.

Additionally, when seeking help, we recommend posting in the "help" channel on Discord or using the discussions section in the main repo MudBlazor Discussions. Most people are active there, and the templates repo isn't frequently monitored. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants