Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone

using Microsoft.AspNetCore.Components.Rendering;
using Microsoft.AspNetCore.Components.Web;

namespace BootstrapBlazor.Server.Components.Samples;

/// <summary>
Expand Down
8 changes: 0 additions & 8 deletions src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone

using Microsoft.AspNetCore.Components.Web;
using Microsoft.Extensions.Localization;

namespace BootstrapBlazor.Components;
Expand All @@ -15,7 +14,6 @@ namespace BootstrapBlazor.Components;
public partial class TreeView<TItem> : IModelEqualityComparer<TItem>
{
private string? ClassString => CssBuilder.Default("tree-view")
.AddClass("is-fixed-search", ShowSearch && IsFixedSearch)
.AddClassFromAttributes(AdditionalAttributes)
.Build();

Expand Down Expand Up @@ -86,12 +84,6 @@ public partial class TreeView<TItem> : IModelEqualityComparer<TItem>
[Parameter]
public bool ShowSearch { get; set; }

/// <summary>
/// Gets or sets whether the search bar is fixed. Default is false.
/// </summary>
[Parameter]
public bool IsFixedSearch { get; set; }

/// <summary>
/// Gets or sets whether to show the reset search button. Default is true.
/// </summary>
Expand Down
8 changes: 0 additions & 8 deletions test/UnitTest/Components/TreeViewTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone

using System.Threading.Tasks;

namespace UnitTest.Components;

public class TreeViewTest : BootstrapBlazorTestBase
Expand Down Expand Up @@ -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]
Expand Down
Loading