-
Notifications
You must be signed in to change notification settings - Fork 43
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
[Navigation] In wasm doesnt work _navigator.ShowMessageDialogAsync #2275
Comments
@brunodamaso thanks for reporting this. We'll investigate this and reply when we know more |
I have the same issue in Skia, the button gets disabled and no Message Dialog is shown. Here's a repo: https://github.com/HakanL/Uno.MessageDlg In my full (private) solution I catch this exception when I'm trying to display the message dialog. I'm not 100% sure it's related as I don't see it in the above repo, but it may be that there isn't a handler for it (unhandled tasks):
|
Also found this in the documentation, that |
It seems we're calling uno.extensions/src/Uno.Extensions.Navigation.UI/Navigators/MessageDialogNavigator.cs Line 101 in b9087d7
Sorry for all the comments, but I just noticed the issue with the message dialogs. I had already upgraded to Uno 5.2, of course I can downgrade, but hoping for a quick fix instead. |
Current behavior
in wasm doesnt work _navigator.ShowMessageDialogAsync,
Expected behavior
Open a dialog message
How to reproduce it (as minimally and precisely as possible)
create an aplication with uno template wizard v.5.2.46 (latest) with the following characteristics
in MainViewModel.cs change this:
private async Task GoToSecondView()
{
await _navigator.ShowMessageDialogAsync(this, title: "titulo", content: "content");
//await _navigator.NavigateViewModelAsync(this, data: new Entity(Name!));
}
compile and run in winAppSDK and OK, compile and run in webassembly doesnt show dialog message, and the button keep blocked
Environment
Nuget Package (s):
CSharpMarkup;
Hosting;
Toolkit;
Mvvm;
Navigation;
Package Version(s):
"Uno.Sdk": "5.2.108"
Affected platform(s):
Visual Studio:
Relevant plugins:
none
The text was updated successfully, but these errors were encountered: