Skip to content

Commit

Permalink
fix(SelectObject): should not override IsRequired method (#5464)
Browse files Browse the repository at this point in the history
* fix(SelectObject): remove IsRequired override method

* chore: bump version 9.4.2
  • Loading branch information
ArgoZhang authored Feb 28, 2025
1 parent ac2ac31 commit 8043e4e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
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>9.4.1</Version>
<Version>9.4.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 0 additions & 6 deletions src/BootstrapBlazor/Components/Select/SelectObject.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,6 @@ protected override void OnParametersSet()
ClearIcon ??= IconTheme.GetIconByKey(ComponentIcons.SelectClearIcon);
}

/// <summary>
/// <inheritdoc/>
/// </summary>
/// <returns></returns>
protected override bool IsRequired() => ValidateForm != null;

private bool GetClearable() => IsClearable && !IsDisabled;

/// <summary>
Expand Down
6 changes: 0 additions & 6 deletions src/BootstrapBlazor/Components/Select/SelectTable.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,6 @@ protected override void OnParametersSet()
ClearIcon ??= IconTheme.GetIconByKey(ComponentIcons.SelectClearIcon);
}

/// <summary>
/// <inheritdoc/>
/// </summary>
/// <returns></returns>
protected override bool IsRequired() => ValidateForm != null;

/// <summary>
/// 获得 Text 显示文字
/// </summary>
Expand Down

0 comments on commit 8043e4e

Please sign in to comment.