Skip to content

Commit c70eca9

Browse files
ArgoZhangshakugans
andauthored
fix(Table): UI not refreshed after save when set ScrollMode to Virtual (#6397)
* refactor: 改用 QueryAsync 方法 * chore: bump version 9.8.1-beta05 Co-Authored-By: shakugans <[email protected]> --------- Co-authored-by: shakugans <[email protected]>
1 parent 5d2ed31 commit c70eca9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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>9.8.1-beta04</Version>
4+
<Version>9.8.1-beta05</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType)
712712
}
713713
else
714714
{
715-
await QueryData();
715+
await QueryAsync();
716716
}
717717
}
718718

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ protected async Task LoopQueryAsync()
12931293
await Task.Delay(AutoRefreshInterval, AutoRefreshCancelTokenSource.Token);
12941294

12951295
// 不调用 QueryAsync 防止出现 Loading 动画 保持屏幕静止
1296-
await QueryData();
1296+
await QueryAsync();
12971297
StateHasChanged();
12981298
}
12991299
catch (TaskCanceledException) { }
@@ -1516,7 +1516,7 @@ public async Task ResetSortAsync()
15161516
SortName = null;
15171517
SortOrder = SortOrder.Unset;
15181518

1519-
await QueryData();
1519+
await QueryAsync();
15201520
}
15211521

15221522
private bool GetAddButtonStatus() => DisableAddButtonCallback?.Invoke(SelectedRows) ?? false;

0 commit comments

Comments
 (0)