File tree Expand file tree Collapse file tree
src/BootstrapBlazor/Components/AutoComplete Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ protected override void OnInitialized()
118118 if ( ! string . IsNullOrEmpty ( Value ) )
119119 {
120120 _filterItems = GetFilterItemsByValue ( Value ) ; // Use the new helper
121-
122121 if ( DisplayCount != null )
123122 {
124123 _filterItems = [ .. _filterItems . Take ( DisplayCount . Value ) ] ;
@@ -241,7 +240,6 @@ public async Task PerformFilteringAndCommitValue(string val)
241240 else
242241 {
243242 // Use the helper method for standard filtering
244-
245243 _filterItems = GetFilterItemsByValue ( val ) ;
246244 }
247245
@@ -257,15 +255,6 @@ public async Task PerformFilteringAndCommitValue(string val)
257255 _shouldRender = true ;
258256 }
259257
260- private List < string > GetFilterItemsByValue ( string val )
261- {
262- var comparison = IgnoreCase ? StringComparison . OrdinalIgnoreCase : StringComparison . Ordinal ;
263- var items = IsLikeMatch
264- ? Items . Where ( s => s . Contains ( val , comparison ) )
265- : Items . Where ( s => s . StartsWith ( val , comparison ) ) ;
266- return [ .. items ] ;
267- }
268-
269258 /// <summary>
270259 /// REMOVED: Original TriggerChange method.
271260 /// Its functionality (updating value, rendering dropdown) is now handled by
You can’t perform that action at this time.
0 commit comments