We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8981f09 commit 3351523Copy full SHA for 3351523
src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs
@@ -228,7 +228,10 @@ private Task SelectedItemOnChanged(SelectedItem selectedItem)
228
229
private Task OnSearchAsync(string searchText)
230
{
231
- SearchItems = string.IsNullOrEmpty(searchText) ? TreeFoo.GetTreeItems() : [];
+ SearchItems =
232
+ [
233
+ new TreeViewItem<TreeFoo>(new TreeFoo() { Text = searchText }) { Text = searchText },
234
+ ];
235
StateHasChanged();
236
return Task.CompletedTask;
237
}
0 commit comments