File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Razor" >
22
33 <PropertyGroup >
4- <Version >9.2.5-beta02 </Version >
4+ <Version >9.2.5</Version >
55 </PropertyGroup >
66
77 <ItemGroup >
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ protected override void OnParametersSet()
115115 PlaceHolder ??= Localizer [ nameof ( PlaceHolder ) ] ;
116116 Icon ??= IconTheme . GetIconByKey ( ComponentIcons . AutoCompleteIcon ) ;
117117
118- FilterItems = Items ? . ToList ( ) ?? [ ] ;
118+ FilterItems ?? = Items ? . ToList ( ) ?? [ ] ;
119119 }
120120
121121 /// <summary>
@@ -145,9 +145,11 @@ public async Task TriggerOnChange(string val)
145145 else
146146 {
147147 var comparison = IgnoreCase ? StringComparison . OrdinalIgnoreCase : StringComparison . Ordinal ;
148- var items = IsLikeMatch
149- ? Items . Where ( s => s . Contains ( val , comparison ) )
150- : Items . Where ( s => s . StartsWith ( val , comparison ) ) ;
148+ var items = string . IsNullOrEmpty ( val )
149+ ? Items
150+ : IsLikeMatch
151+ ? Items . Where ( s => s . Contains ( val , comparison ) )
152+ : Items . Where ( s => s . StartsWith ( val , comparison ) ) ;
151153 FilterItems = items . ToList ( ) ;
152154 }
153155
You can’t perform that action at this time.
0 commit comments