Skip to content

Commit 4635a24

Browse files
committed
Update AutoComplete.razor.cs
accidently added duplicate GetFilterItemsByValue, oops. now its removed
1 parent a674583 commit 4635a24

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)