mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-29 18:49:08 +08:00
fix(SelectTable): validate component shoud be skip validate in search panel (#4580)
* fix(Table): 增加缺失的 SkipValidate 设置 * fix: 增加搜索面板下取消验证逻辑 * fix: 更新单元测试 * chore: bump version 8.11.1-beta03
This commit is contained in:
parent
40bea27bf1
commit
557107b96f
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>8.11.1-beta02</Version>
|
||||
<Version>8.11.1-beta03</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -995,7 +995,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<BootstrapInput class="table-toolbar-search" placeholder="@SearchPlaceholderText" @onkeyup="OnSearchKeyUp" @bind-Value="@SearchText">
|
||||
<BootstrapInput class="table-toolbar-search" placeholder="@SearchPlaceholderText" @onkeyup="OnSearchKeyUp" @bind-Value="@SearchText" SkipValidate="true">
|
||||
</BootstrapInput>
|
||||
}
|
||||
}
|
||||
|
@ -537,7 +537,7 @@ public static class Utility
|
||||
// 设置 SkipValidate 参数
|
||||
if (IsValidComponent(componentType))
|
||||
{
|
||||
builder.AddAttribute(160, nameof(IEditorItem.SkipValidate), item.SkipValidate);
|
||||
builder.AddAttribute(160, nameof(IEditorItem.SkipValidate), isSearch || item.SkipValidate);
|
||||
}
|
||||
|
||||
builder.AddMultipleAttributes(170, CreateMultipleAttributes(fieldType, model, fieldName, item));
|
||||
|
@ -929,7 +929,7 @@ public class DateTimePickerTest : BootstrapBlazorTestBase
|
||||
pb.Add(a => a.AutoClose, true);
|
||||
});
|
||||
await cut.InvokeAsync(() => button.Click());
|
||||
Assert.Equal(val, DateTime.Today.AddMonths(-1));
|
||||
Assert.Equal(val, DateTime.MinValue);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
Loading…
Reference in New Issue
Block a user