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

Controls do not respond to clicks #27

Open
nref opened this issue Aug 5, 2024 · 2 comments
Open

Controls do not respond to clicks #27

nref opened this issue Aug 5, 2024 · 2 comments

Comments

@nref
Copy link

nref commented Aug 5, 2024

This could be user error.

I followed the instructions in the README to add ThemeManager to my Blazor 8.0 app. The cog and bar appear on the right, but they do not respond to clicks.

If I scroll horizontally manually to bring the sidebar into view and click on a color, a color picker does not appear. (I only assume that was the intent.)

I do have the Providers in MainLayout.

<MudPopoverProvider/>
<MudDialogProvider />

I tried to teach myself do it right with the test app, but it does not start: #26

@ScarletKuro
Copy link
Member

Hi

You probably didn't set rendermode for Routes and HeadOutlet in the App.razor if you are using WebApp template.

@Allann
Copy link

Allann commented Nov 3, 2024

Is that needed when the app globally sets it?

builder.Services.AddRazorComponents()
    .AddInteractiveServerComponents();

and

app.MapRazorComponents<App>()
    .AddInteractiveServerRenderMode();

So it appears that the Theme Manager must use CSR, and SSR is not supported.

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

3 participants