Skip to content

Commit

Permalink
Adds Bool and Null bool support for InputType.Select
Browse files Browse the repository at this point in the history
  • Loading branch information
jbomhold3 committed May 16, 2023
1 parent a8f9b55 commit 0594e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlazorStrap/BlazorStrap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageProjectUrl>https://blazorstrap.io/</PackageProjectUrl>
<RepositoryUrl>https://github.com/chanan/BlazorStrap</RepositoryUrl>
<RootNamespace>BlazorStrap</RootNamespace>
<PackageVersion>5.1.102.50923</PackageVersion> <!--Next Use 5.1.103-Preview1-->
<PackageVersion>5.1.102.51623</PackageVersion> <!--Next Use 5.1.103-Preview1-->
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/BlazorStrap/Shared/Components/Forms/BSInputBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public BSInputBase()
return value switch
{
null => null,
bool @bool => BindConverter.FormatValue(@bool.ToString().ToLowerInvariant(), CultureInfo.InvariantCulture),
int @int => BindConverter.FormatValue(@int, CultureInfo.InvariantCulture),
long @long => BindConverter.FormatValue(@long, CultureInfo.InvariantCulture),
float @float => BindConverter.FormatValue(@float, CultureInfo.InvariantCulture),
Expand Down

0 comments on commit 0594e8b

Please sign in to comment.