-
diff --git a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs
index ef2c9349ef7..e7a568e1842 100644
--- a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs
+++ b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs
@@ -72,9 +72,6 @@ public partial class MultiSelects
[NotNull]
private ConsoleLogger? Logger { get; set; }
- [NotNull]
- private ConsoleLogger? OptionLogger { get; set; }
-
private List
? SearchItemsSource { get; set; }
private string SelectedSearchItemsValue { get; set; } = "Beijing";
@@ -98,6 +95,21 @@ public partial class MultiSelects
private List CascadingItems1 { get; set; } = [];
+ private string? _editString;
+
+ private async Task OnEditCallback(string value)
+ {
+ await Task.Delay(100);
+
+ var item = EditableItems.Find(i => i.Text.Equals(value, System.StringComparison.OrdinalIgnoreCase));
+ if (item == null)
+ {
+ item = new SelectedItem(value, value);
+ EditableItems.Add(item);
+ }
+ return item;
+ }
+
private SelectedItem[] GroupItems { get; } =
[
new("Jilin", "εζ") { GroupName = "δΈε"},