Fixed issue with dialog opening but is not closing due to request running into a "ContentControlHandler" after the dialog's await state has been completed.
This commit is contained in:
@@ -3,9 +3,9 @@ using Toolkit.Framework.Foundation;
|
||||
|
||||
namespace Toolkit.Framework.Avalonia;
|
||||
|
||||
public class ContentControlNavigationHandler : IRequestHandler<ContentControlNavigation, bool>
|
||||
public class ContentControlNavigationHandler : IRequestHandler<ContentControlNavigation>
|
||||
{
|
||||
public ValueTask<bool> Handle(ContentControlNavigation request, CancellationToken cancellationToken)
|
||||
public ValueTask<Unit> Handle(ContentControlNavigation request, CancellationToken cancellationToken)
|
||||
{
|
||||
if (request.Template is TemplatedControl control)
|
||||
{
|
||||
@@ -13,6 +13,6 @@ public class ContentControlNavigationHandler : IRequestHandler<ContentControlNav
|
||||
request.Route.Content = control;
|
||||
}
|
||||
|
||||
return new ValueTask<bool>(true);
|
||||
return default;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user