Numeric validation flaw with nullable int

Hello @Team

I couldn't find an example in the demos, so I'm posting my case.

<RadzenNumeric @bind-Value=@(Capacity) Min="1" Max="100000" ShowUpDown="false" TValue="int?" />

NumericValidationFlaws

It seems that it only sanitizes an out of range value one time. Then all invalid values would be accepted. Writing a correct value resets this.

Radzen.Blazor 3.13.3

Hi @kim,

We are aware of this problem however we were unable to find solution so far. The only workaround is to use Value/Change instead @bind-Value:

<RadzenNumeric Value=@(value) Min="1" Max="100000" ShowUpDown="false" TValue="int?" Change=@(args => value = args) />
1 Like