The Type "InputType.Number" has a bug since it allows letter 'e'.

I realized the Type="InputType.Number" allows one to enter letter e but it is only supposed to allow numbers. I also printed the e to the console since i suspected it was the base of logs but it printed an empty line. I also realized you can't enter more than one e in the textbox. I think it's a bug.

The package I was using was the latest stable as of today, Syncfusion.Blazor.Inputs (version=27.1.58).


2 Replies

EM Emmanuel Mulwa November 13, 2024 01:21 PM UTC

I actually realized it is that way in raw html with <input type="number" />... it is the scientific notation e, which is base 10.



UD UdhayaKumar Duraisamy Syncfusion Team November 14, 2024 07:51 AM UTC

This behavior is indeed expected for the TextBox component with Type="InputType.Number", as it aligns with the HTML specification for input[type="number"]. The number input type allows scientific notation (e.g., 1e5 for 100000) by default, as this is part of the standard functionality supported by modern browsers. You can refer to the HTML specifications for input[type="number"] on MDN Web Docs for more details: MDN Web Docs - number input.


Loader.
Up arrow icon