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

https://wetransfer.com/downloads/bcfaccb7140ea2b021fcb138f5c7899c20190329044631/0e47bd8ac8f124d88fe8185533f03db920190329044631/4ed836/preview/56b28d32ce9dd186a40c084a976e9c6a20190329044631

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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • 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
Tags