Skip to content

Commit

Permalink
fix(module: select): group names are not hidden when searching (#3722)
Browse files Browse the repository at this point in the history
* Fix the issue where group names are not hidden when searching in the Select component

* fix(module: select)group names are not hidden when searching
  • Loading branch information
WhyILoveSpringRoll committed Mar 15, 2024
1 parent 03ffbad commit 37bd574
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/select/internal/SelectOptionGroup.razor
Expand Up @@ -22,7 +22,10 @@
}
else
{
<div class="@ClassMapper.Class">@selectOption.GroupName</div>
if(SelectParent.SelectOptionItems.Any(i=>i.GroupName==selectOption.GroupName && !i.IsHidden))
{
<div class="@ClassMapper.Class">@selectOption.GroupName</div>
}
<CascadingValue Value="@selectOption.InternalId" Name="InternalId">
@selectOptionFragment(selectOption)
</CascadingValue>
Expand Down

0 comments on commit 37bd574

Please sign in to comment.