Manual entry of the out-of-range value is not corrected the second time

Hi, 

I am using two NumericTextBox controls with limits as follows


<SfNumericTextBox Placeholder = "Component 1" TValue = "uint" Format = "n0" Value = "20"

                   Min = "20" Max = "60" FloatLabelType = "@ FloatLabelType.Always" />


<SfNumericTextBox Placeholder = "Component 2" TValue = "uint" Format = "n0" Value = "30"

                   Min = "30" Max = "80" FloatLabelType = "@ FloatLabelType.Always" />


with the up / down buttons everything works fine and even if I type a number out of range the first time, in both components.

However, when I type an out-of-range value again, in either component, the value is not corrected by the limits.


waiting

Greetings


3 Replies

DR Deepak Ramakrishnan Syncfusion Team October 20, 2021 04:47 PM UTC

Hi Salvatore,

Greetings from Syncfusion support.

We can able to reproduce the reported issue in our end . We will update the possible defect details in two business days(22nd,October 2021).

Thanks,
Deepak R.




DR Deepak Ramakrishnan Syncfusion Team October 26, 2021 10:58 AM UTC

Hi Salvatore, 
 
 
Thanks for your patience. 
 
 
We have considered the reported issue “Min and Max property not working properly when value is typed in input ” as bug in our end . We will include the fix in the release to be rolled out at today(26th,October 2021). You can track the following feedback link to track the status of the issue . 
 
 
 
 
 
Thanks, 
Deepak R. 



NR Naveenkumar Raja Syncfusion Team July 22, 2022 04:15 AM UTC

Hi Sir ,

I am using four NumericTextBox controls with limits as follows

<SfNumericTextBox HtmlAttributes="@MaxLength16" TValue="double?" Min="0" Max="9999999999999999" Format="n4" Value="5"></SfNumericTextBox>

                <SfNumericTextBox HtmlAttributes="@MaxLength15" TValue="double?" Min="0" Max="9999999999999999" Format="n4" Value="5"></SfNumericTextBox>

                <SfNumericTextBox HtmlAttributes="@MaxLength14" TValue="double?" Min="0" Max="99999999999999" Format="n4" Value="5"></SfNumericTextBox>

                <SfNumericTextBox HtmlAttributes="@MaxLength12" TValue="double?" Min="0" Max="999999999999" Format="n4" Value="5"></SfNumericTextBox>

                <SfNumericTextBox HtmlAttributes="@MaxLength10" TValue="double?" Min="-20" Max="9999999999" Format="n2" Value="5"></SfNumericTextBox>


@code{


private Dictionary MaxLength16 { get; set; } = new Dictionary() { { "maxlength", "16" } };

private Dictionary MaxLength15 { get; set; } = new Dictionary() { { "maxlength", "15" } };

private Dictionary MaxLength14 { get; set; } = new Dictionary() { { "maxlength", "14" } };

private Dictionary MaxLength12 { get; set; } = new Dictionary() { { "maxlength", "12" } };

private Dictionary MaxLength10 { get; set; } = new Dictionary() { { "maxlength", "10" } };


}



Its problem was below the snap.

First, a numeric text box with a maximum length of 16 digits and a maximum value of "999999999999," but as I shift my focus, the text box's contents abruptly change. Why?




Loader.
Up arrow icon