MudBlazor Dialog does not works in Maui Blazor.
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.
Relevant log output
No response
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:
- MAUI Blazor for Windows: PushModalAsync-Issue (#9288), similarity score: 0.72
- Creating "bottom sheet dialog" doesn't render correctly (#6445), similarity score: 0.71
- Maui Blazor fails to show messagebox in Release configuration on Android (#9117), similarity score: 0.70
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Have you tried asking in the MudBlazor github?
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.
I try to follow the steps to reproduce this issue on 8.0.40 and 8.0.7 and it works fine, below is my sample project.
MauiApp40.zip
Hi @icebergdelphi. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.
You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.