From d33b77a6f85c767ab4e6ab16b92baf41b63688ff Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 12 Dec 2025 10:30:11 +0800 Subject: [PATCH 1/2] fix(Button): add Task yield prevent block thread --- src/BootstrapBlazor/Components/Button/Button.razor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/Button/Button.razor.cs b/src/BootstrapBlazor/Components/Button/Button.razor.cs index b573dfee3ff..04fbd78942b 100644 --- a/src/BootstrapBlazor/Components/Button/Button.razor.cs +++ b/src/BootstrapBlazor/Components/Button/Button.razor.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone @@ -46,6 +46,7 @@ protected virtual async Task OnClickButton() { IsAsyncLoading = true; IsDisabled = true; + await Task.Yield(); } await HandlerClick(); From f63b6c3e27fbceb1b4d094fa4b1c3bbfc978752a Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 12 Dec 2025 10:33:46 +0800 Subject: [PATCH 2/2] chore: bump version 10.1.4-beta03 --- src/BootstrapBlazor/BootstrapBlazor.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index ce3945f8e6c..fb52dc384d0 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 10.1.4-beta02 + 10.1.4-beta03