Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextField type="number" accepts the character 'e' #11331

Closed
1 task done
Johnsgaard opened this issue May 11, 2018 · 2 comments
Closed
1 task done

TextField type="number" accepts the character 'e' #11331

Johnsgaard opened this issue May 11, 2018 · 2 comments
Labels
component: text field This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@Johnsgaard
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The TextField component with props type="number" should not accept any alphabetical characters

Current Behavior

When you enter the character 'e' specifically it will be added to the inputs value

Steps to Reproduce (for bugs)

  1. https://codesandbox.io/embed/r6k1o95oq

Your Environment

Tech Version
Material-UI ^1.0.0-beta.37
React ^16.2.0
browser Chrome
@Johnsgaard
Copy link
Author

Forgot about scientific notation

@oliviertassinari oliviertassinari added the component: text field This is the name of the generic UI component, not the React module! label Jun 11, 2018
@oliviertassinari
Copy link
Member

oliviertassinari commented Jun 11, 2018

Duplicate of #10582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants