maui icon indicating copy to clipboard operation
maui copied to clipboard

MudBlazor Dialog does not works in Maui Blazor.

Open icebergdelphi opened this issue 1 year ago • 1 comments

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 avatar May 11 '24 11:05 icebergdelphi

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.

github-actions[bot] avatar May 11 '24 11:05 github-actions[bot]

Have you tried asking in the MudBlazor github?

drasticactions avatar May 13 '24 16:05 drasticactions

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.

Kaddtechnologies avatar May 16 '24 20:05 Kaddtechnologies

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 image

jaosnz-rep avatar May 28 '24 08:05 jaosnz-rep

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.