NoHomey / material-ui-number-input

The <TextField type="number" /> that user really expects.

Home Page:http://nohomey.github.io/material-ui-number-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why does onChange return a string?

timbjames opened this issue · comments

I thought with this being a NumberInput, that the onChange event would return a valid number rather than a string value?

Is this something in the pipeline?

It returns a string because type='number' limits what can be entered so no proper validation is possible when browsers auto corrects the input's value.