Skip to content

Commit 8308fb4

Browse files
authored
feat(TreeView): use Task instead of ValueTask (#4737)
* refactor(TreeView): use Task instead of ValueTask * chore: bump version 9.0.2-beta03
1 parent 233ea83 commit 8308fb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

+1-1
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.0.2-beta02</Version>
4+
<Version>9.0.2-beta03</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public async ValueTask TriggerKeyDown(string key)
433433
/// <param name="items"></param>
434434
/// <returns></returns>
435435
[JSInvokable]
436-
public ValueTask<List<CheckboxState>> GetParentsState(List<int> items)
436+
public Task<List<CheckboxState>> GetParentsState(List<int> items)
437437
{
438438
var rows = Rows;
439439
var result = items.Select(i =>
@@ -447,7 +447,7 @@ public ValueTask<List<CheckboxState>> GetParentsState(List<int> items)
447447
item.CheckedState = checkedState;
448448
return checkedState;
449449
}).ToList();
450-
return ValueTask.FromResult(result);
450+
return Task.FromResult(result);
451451
}
452452

453453
private static bool IsExpand(TreeViewItem<TItem> item) => item.IsExpand && item.Items.Count > 0;

0 commit comments

Comments
 (0)