Skip to content

Commit 8dd3e1d

Browse files
authored
fix(Button): add Task yield prevent block thread (#7303)
* fix(Button): add Task yield prevent block thread * chore: bump version 10.1.4-beta03
1 parent dbf866c commit 8dd3e1d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>10.1.4-beta02</Version>
4+
<Version>10.1.4-beta03</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Button/Button.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the Apache 2.0 License
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -46,6 +46,7 @@ protected virtual async Task OnClickButton()
4646
{
4747
IsAsyncLoading = true;
4848
IsDisabled = true;
49+
await Task.Yield();
4950
}
5051

5152
await HandlerClick();

0 commit comments

Comments
 (0)