Topic: In React Material Input issue in number type
rashesh patel free asked 5 years ago
Hi, While I am using Number type in Material Input in react it accept all numbers but it also accept one alphabet that is "e" or "E" ,Please refer below link
What should I do to remove that one alphabet??
Thank you.
Anna Morawska staff answered 5 years ago
Hi there,
it's perfectly normal behaviour for numeric inputs - it's implemented natively for all of them because the letter e
stands for an exponent, so, for example, you can write a number as 10e3 which stand for 10* 1000 = 10000
. You can test it by writing 10e3 in a numeric input and then pressing up step button
Best, Ania
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.11.1
- Device: LAPTOP
- Browser: CHROME
- OS: WINDOWS 10
- Provided sample code: No
- Provided link: Yes