Skip to content

bug(InputNumber): 西班牙语言导致绑定int32提示转换失败 #5027

@densen2014

Description

@densen2014

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

9.2.2 and 9.2.1

版本 9.1.9 还没这个问题, 升级到 9.2.1 出现 BootstrapInputNumberBase 转换失败

Expected Behavior

复现代码

@code{
int Value=99;
}
<BootstrapInputNumber  Value="@Value"   />

Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

Steps To Reproduce

复制上面代码, 直接执行就报错了

Exceptions (if any)

Message: The type 'System.Int32' is not a supported numeric type.
*********************************************
StackTrace: at BootstrapBlazor.Components.BootstrapInputNumberBase`1.SetParametersAsync(ParameterView parameters)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.SupplyCombinedParameters(ParameterView directAndCascadingParameters)

image

.NET Version

NET9.0

Anything else?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions