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
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>10.3.3-beta01</Version>
<Version>10.3.3-beta02</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
16 changes: 8 additions & 8 deletions src/BootstrapBlazor/Components/Table/Table.razor
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,18 @@
{
<Tooltip Placement="Placement.Top" Title="@SearchTooltip" Sanitize="false" IsHtml="true">
<BootstrapInput class="table-toolbar-search" placeholder="@SearchPlaceholderText"
Value="@SearchText" SkipValidate="true"
@bind-Value="@SearchText" SkipValidate="true"
OnEnterAsync="OnEnterAsync" OnEscAsync="OnEscAsync"
ShowLabel="false" UseInputEvent="AutoSearchOnInput">
ShowLabel="false">
</BootstrapInput>
</Tooltip>
}
else
{
<BootstrapInput class="table-toolbar-search" placeholder="@SearchPlaceholderText"
Value="@SearchText" SkipValidate="true"
@bind-Value="@SearchText" SkipValidate="true"
OnEnterAsync="OnEnterAsync" OnEscAsync="OnEscAsync"
ShowLabel="false" UseInputEvent="AutoSearchOnInput">
ShowLabel="false">
</BootstrapInput>
}
}
Expand Down Expand Up @@ -1050,18 +1050,18 @@
{
<Tooltip Placement="Placement.Top" Title="@SearchTooltip" Sanitize="false" IsHtml="true">
<BootstrapInput class="table-toolbar-search" placeholder="@SearchPlaceholderText"
Value="@SearchText"
@bind-Value="@SearchText"
OnEnterAsync="OnEnterAsync" OnEscAsync="OnEscAsync"
ShowLabel="false" SkipValidate="true" UseInputEvent="AutoSearchOnInput">
ShowLabel="false" SkipValidate="true">
</BootstrapInput>
</Tooltip>
}
else
{
<BootstrapInput class="table-toolbar-search" placeholder="@SearchPlaceholderText"
Value="@SearchText"
@bind-Value="@SearchText"
OnEnterAsync="OnEnterAsync" OnEscAsync="OnEscAsync"
ShowLabel="false" SkipValidate="true" UseInputEvent="AutoSearchOnInput">
ShowLabel="false" SkipValidate="true">
</BootstrapInput>
}
}
Expand Down
1 change: 0 additions & 1 deletion src/BootstrapBlazor/Components/Table/Table.razor.Search.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ protected async Task ResetSearchClick()

private async Task OnEnterAsync(string? v)
{
SearchText = v;
await SearchClick();
}

Expand Down
2 changes: 2 additions & 0 deletions src/BootstrapBlazor/Components/Table/Table.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public partial class Table<TItem> : ITable, IModelEqualityComparer<TItem> where
/// <para lang="en">Gets or sets whether to auto search on fuzzy search bar input. Default false</para>
/// </summary>
[Parameter]
[Obsolete("已弃用,直接删除即可。Deprecated, please remove this parameter directly.")]
[ExcludeFromCodeCoverage]
public bool AutoSearchOnInput { get; set; }

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion test/UnitTest/Components/TableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ public async Task OnSearchKeyUp_Ok()
pb.Add(a => a.ShowToolbar, true);
pb.Add(a => a.ShowSearch, true);
pb.Add(a => a.ShowSearchText, true);
pb.Add(a => a.AutoSearchOnInput, false);
pb.Add(a => a.ShowSearchTextTooltip, false);
pb.Add(a => a.SearchMode, SearchMode.Top);
pb.Add(a => a.Items, Foo.GenerateFoo(localizer, 2));
Expand Down