Skip to content

Commit 2275add

Browse files
committed
!3744 fix(#I69EU7): add OnConfirm callback
* chore: bump version 7.2.3-beta01 * fix: 修复 OnConfirm 回调不生效问题
1 parent 30dc75c commit 2275add

2 files changed

Lines changed: 6 additions & 1 deletion

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>7.2.2</Version>
4+
<Version>7.2.3-beta01</Version>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ private async Task OnToolbarConfirmButtonClick(TableToolbarPopconfirmButton<TIte
7575
await button.OnClick.InvokeAsync();
7676
}
7777

78+
if (button.OnConfirm != null)
79+
{
80+
await button.OnConfirm();
81+
}
82+
7883
// 传递当前选中行给回调委托方法
7984
if (button.OnConfirmCallback != null)
8085
{

0 commit comments

Comments
 (0)