diff --git a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs index 9745d90689f..d1601e7a9f1 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs @@ -3,9 +3,6 @@ // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone -using Microsoft.AspNetCore.Components.Rendering; -using Microsoft.AspNetCore.Components.Web; - namespace BootstrapBlazor.Server.Components.Samples; /// diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs index 1bea8c3904a..912571355fb 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone -using Microsoft.AspNetCore.Components.Web; using Microsoft.Extensions.Localization; namespace BootstrapBlazor.Components; @@ -15,7 +14,6 @@ namespace BootstrapBlazor.Components; public partial class TreeView : IModelEqualityComparer { private string? ClassString => CssBuilder.Default("tree-view") - .AddClass("is-fixed-search", ShowSearch && IsFixedSearch) .AddClassFromAttributes(AdditionalAttributes) .Build(); @@ -86,12 +84,6 @@ public partial class TreeView : IModelEqualityComparer [Parameter] public bool ShowSearch { get; set; } - /// - /// Gets or sets whether the search bar is fixed. Default is false. - /// - [Parameter] - public bool IsFixedSearch { get; set; } - /// /// Gets or sets whether to show the reset search button. Default is true. /// diff --git a/test/UnitTest/Components/TreeViewTest.cs b/test/UnitTest/Components/TreeViewTest.cs index f48a97d9042..13b1d6a249a 100644 --- a/test/UnitTest/Components/TreeViewTest.cs +++ b/test/UnitTest/Components/TreeViewTest.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone -using System.Threading.Tasks; - namespace UnitTest.Components; public class TreeViewTest : BootstrapBlazorTestBase @@ -1051,12 +1049,6 @@ public void ShowSearch_Ok() }); }); cut.Contains("search-template"); - - cut.SetParametersAndRender(pb => - { - pb.Add(a => a.IsFixedSearch, true); - }); - cut.Contains("is-fixed-search"); } [Fact]