File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.Region Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Razor" >
22
33 <PropertyGroup >
4- <Version >9.0.5 </Version >
4+ <Version >9.0.6 </Version >
55 </PropertyGroup >
66
77 <PropertyGroup >
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ public partial class SelectCity
5353 private string ? _searchText ;
5454
5555 private string ? GetActiveClass ( string item ) => CssBuilder . Default ( )
56- . AddClass ( "active" , _values . Contains ( item ) || CurrentValue == item )
56+ . AddClass ( "active" , _values . Contains ( item ) && IsMultiple )
57+ . AddClass ( "active" , CurrentValue == item && ! IsMultiple )
5758 . AddClass ( "prev" , ! string . IsNullOrEmpty ( _searchText ) && PinYinService . GetFirstLetters ( item ) . StartsWith ( _searchText ) )
5859 . Build ( ) ;
5960
@@ -65,6 +66,11 @@ protected override void OnParametersSet()
6566 base . OnParametersSet ( ) ;
6667
6768 SearchIcon ??= IconTheme . GetIconByKey ( ComponentIcons . SelectSearchIcon ) ;
69+
70+ if ( ! IsMultiple )
71+ {
72+ _values . Clear ( ) ;
73+ }
6874 }
6975
7076 /// <summary>
You can’t perform that action at this time.
0 commit comments