单击radzennumeric元素的值高于最大值,但不会重置值

发布于 2025-02-13 09:10:36 字数 547 浏览 3 评论 0原文

我有一个像这样定义的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

↘紸啶 2025-02-20 09:10:36

发现此行为是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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文