单击radzennumeric元素的值高于最大值,但不会重置值
我有一个像这样定义的radzennumeric元素,
<RadzenNumeric @bind-Value="Amount" Min="0.00M" Max="10000000.00M"/>
<ValidationMessage For="@(() => Amount)" />
其中量
是类型十进制
,
因此当我输入一个大于10000000的值时,例如20000000,然后单击元素,输入字段中的值将重置为最大值IE 10000000。但是,如果我手动将值再次更改为20000000,然后再次单击字段,则数字不会如预期的那样更改。
我不知道为什么。我尝试了Blazor Radzen库文档中提供的示例 https://blazor.radzen.com/numeric 它可以按预期工作。需要帮助来弄清楚我做错了什么。
I have a RadzenNumeric element defined like this,
<RadzenNumeric @bind-Value="Amount" Min="0.00M" Max="10000000.00M"/>
<ValidationMessage For="@(() => Amount)" />
Where Amount
is of type decimal
So when I enter a value that is greater than 10000000, say 20000000 and click out of the element, the value in the input field resets to the max value i.e. 10000000. But if I manually change the value to 20000000 again and click out of the field once more, the number does not change as is expected.
I have no clue why. I tried the example provided in blazor radzen library documentation https://blazor.radzen.com/numeric and there it works as expected. Need help to figure out what I did wrong.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现此行为是
radzennumeric
组件的问题。每当使用@bind-value
属性时,组件就这样行为。该错误是由Radzen团队在发行版中修复的 v3.19.7 。
radzen论坛线程识别错误。
This behavior was found to be a problem with the
RadzenNumeric
component. The component behaved like this whenever the@bind-Value
property was used.This bug was fixed by the Radzen team in release v3.19.7.
Radzen forum thread identifying the bug.