Closed Gopichandar closed 10 months ago
Can you create and attach a sample solution containming this problem?
Attacched the sample sln for reference @fgilde
Also tried disabling the prerendering still issue exists.
Where do you attached a sample? Didn't see it. one info. Ensure that you inject IDialogService not DialogService.
Hi @fgilde , can you check if you can see the attached zip?
Yes thank you
Ok I'll work on it. It's strange i I dont know why its working with .net6 or 7 but anyway. You can currently workaround it if you want with manually by passing the IJSRuntime like this
[Inject]
public IDialogService _dialogService { get; set; }
[Inject]
IJSRuntime JS { get; set; }
private async Task OpenDialog()
{
DialogOptionsEx options = new DialogOptionsEx() {JsRuntime = JS};
var dialog = await _dialogService.ShowEx<MyMudDialog>("Your Dialog Title", options);
}
Great. Thanks for the workaround.
Ok bug is fixed in 1.7.80 MudBlazor.Extensions 1.7.80 Nuget
I just wanted to say this issue was super helpful. I was injecting a DialogServs the IDialogService, and as soon as I put it into the IDialogService, it worked just fine.
I'm very happy to hear that
Contact Details
gopichandarbe@gmail.com
What happened?
I have followed the exact steps as mentioned. https://github.com/fgilde/MudBlazor.Extensions?tab=readme-ov-file#setting-up-mudblazorextensions
In using this on .Net 8 and running this in
InteractiveServer
render mode.When I call a dialog,
var dialog = await DialogService.ShowEx("ShowDialog");
I got the following exception,
Note: This is working fine in
MudBlazor
Expected Behavior
Dialog should be should without app crash,
Screenshots
Reproduction link
No response
What application type are you referring to?
ServerRendered
Custom Application Type
No response
MudBlazor.Extension Version
*
MudBlazor Version
6.11.1
What browser are you using?
Chrome
Sample Solution
MudBlazorExt_Issue.zip
Pull Request
No response
Code of Conduct