Skip to content

Commit

Permalink
fix(MultiFilter): missing item selection status (#3766)
Browse files Browse the repository at this point in the history
* fix: 增加过滤条件重置逻辑

* chore: bump version 8.7.1-beta02

* fix: 修复全选状态丢失问题
  • Loading branch information
ArgoZhang authored Jul 1, 2024
1 parent 6454733 commit 9f8c409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>8.7.1-beta01</Version>
<Version>8.7.1-beta02</Version>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
Expand Down
3 changes: 2 additions & 1 deletion src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public override void Reset()
{
item.Checked = false;
}
_items = null;
StateHasChanged();
}

Expand Down Expand Up @@ -119,7 +120,7 @@ private bool GetAllState()

private Task OnStateChanged(CheckboxState state, bool val)
{
foreach (var item in _source)
foreach (var item in GetItems())
{
item.Checked = state == CheckboxState.Checked;
}
Expand Down

0 comments on commit 9f8c409

Please sign in to comment.