diff --git a/BlazorDialog/BlazorDialog.csproj b/BlazorDialog/BlazorDialog.csproj index f453faf..085117f 100644 --- a/BlazorDialog/BlazorDialog.csproj +++ b/BlazorDialog/BlazorDialog.csproj @@ -2,8 +2,6 @@ true - - false BlazorDialog Stavros Kasidis (AkiraGTX) @@ -14,7 +12,7 @@ blazor blazor-component blazor-dialog dialog modal blazor-modal blazordialog blazormodaldialog blazormodal razor razor-components razorcomponents $(VersionSuffix) - 2.1.0 + 2.2.0 $(Version)-$(VersionSuffix) BlazorDialog diff --git a/BlazorDialog/Components/Dialog.razor b/BlazorDialog/Components/Dialog.razor index 324f9ff..2c14a27 100644 --- a/BlazorDialog/Components/Dialog.razor +++ b/BlazorDialog/Components/Dialog.razor @@ -210,7 +210,7 @@ dialogStore.Unregister(this); if (taskCompletionSource != null) { - taskCompletionSource.SetCanceled(); + taskCompletionSource.TrySetCanceled(); taskCompletionSource = null; } } @@ -256,7 +256,7 @@ } if (taskCompletionSource != null) { - taskCompletionSource.SetCanceled(); + taskCompletionSource.TrySetCanceled(); taskCompletionSource = null; } diff --git a/Directory.Build.props b/Directory.Build.props index d2c3918..becaf25 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ net6.0 - 6.0.0 + 6.0.26 enable enable diff --git a/README.md b/README.md index ece3d7d..6f58308 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,14 @@ Make sure that there is a call to `app.UseStaticFiles();` in your server project ## Release Notes +
2.2 + +>- Fix for showing the same dialog with the dialog service more than once in the same async function. +>- Upgrade MS packages dependecy to 6.0.26 +
+ -
2.1 +
2.1 >- Minor fix for when returning null dialog results to non nullable result types.