I am create a modal dialog, but when I run it, shows a transparent Title Bar and the close button (X) is no visible:
In adittion, I need to click twice in the close button that fires the dialogService.Close to close the dialog.
I am using the Razden.Blazor 3.1.10 version.
The call of the dialog is:
<input type="button" class="btn btn-primary" value="Details" @onclick=@(e => DialogService.Open($"Category {item.CategoryName}",
new Dictionary<string, object>() { { "dataSelected", item } },
new DialogOptions(){ Width = "500px", Height = "400px", Left = "calc(50% - 250px)", Top = "calc(50% - 200px)", ShowClose=true, ShowTitle= true})) />
I find a very strange behavior. The project is an standard blazor WebAssemply app create with VS2019, the project incudes the "Counter" and "Fetch Data" menu option wich are automaticaly added to project.
When I run the app for first time the default-base.css file are no loaded.
If the app raised an error (in my case the Fech Data option don't work) and I press the Reload option in the messaje show in the browser, the default-base.css is loaded and the dialogs works fine.
I have an status update: If I run the app in "no debug mode" (ctrl + F5) the dialog works fine.
I enable the javaScrip debug option in project's properties but the problem persists.