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

MudBlazor Dialog does not works in Maui Blazor. #22343

Open
icebergdelphi opened this issue May 11, 2024 · 3 comments
Open

MudBlazor Dialog does not works in Maui Blazor. #22343

icebergdelphi opened this issue May 11, 2024 · 3 comments
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟 s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@icebergdelphi
Copy link

icebergdelphi commented May 11, 2024

Description

Yesterday I created an application in Net Maui Blazor and also integrated MudBlazor (6.19.1), everything works well, but when I wanted to integrate a dialog, the Dialog is never shown, however when I did the same test but with Blazor the Dialog It works like a charm.

Steps to Reproduce

1.- Create the Net Maui Blazor App
2.- Download MudBlazor Nuget
3.-Integrate builder.Services.AddMudServices(); in MauiProgram.cs
4.-Integrate in MainLayout.razor: The tags:
MudThemeProvider
MudDialogProvider
MudSnackbarProvider

5.-Integrate in the Counter.razor file my code:
`
/* MudBlazor Tags*/
MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="Confirm">Click Me</MudButton

//Code to execute the Dialog
private async Task Confirm()
{
await DialogService.ShowMessageBox("oooo","Ok");

}
`

Link to public reproduction project repository

No response

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

As I mentioned before, the Dialog works very well in Blazor, but in a Maui Blazor project, the Dialog is never displayed.
Captura de pantalla 2024-05-11 062147

Relevant log output

No response

@icebergdelphi icebergdelphi added the t/bug Something isn't working label May 11, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@icebergdelphi icebergdelphi changed the title MudBlazor Dialog no funciona en Maui Blazor. MudBlazor Dialog does not works in Maui Blazor. May 11, 2024
@jsuarezruiz jsuarezruiz added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label May 13, 2024
@drasticactions
Copy link
Contributor

Have you tried asking in the MudBlazor github?

@drasticactions drasticactions added the s/needs-info Issue needs more info from the author label May 13, 2024
@Kaddtechnologies
Copy link

Have you tried asking in the MudBlazor github?

This seems like a Maui issue. I have the same problem.

Mudblazor works fine in a blazor app. Mudblazor also works fine in a Maui app.
The dialog is the only thing not working as if Maui cannot display it for some reason.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟 s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants