Number TextField breaks when inputting letters #24312
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
Current Behavior 😯
Inputting a letter makes the text on the top drop down onto the current text:
GYzsTADdrJ.mp4
Expected Behavior 🤔
Either:
Steps to Reproduce 🕹
https://codesandbox.io/s/material-ui-issue-forked-3o9f6
Steps:
<TextField id="outlined-number" type="number" variant="outlined" margin="normal" required fullWidth label="Testing" name="Testing" value={value} onChange={(e) => setValue(e.target.value)} autoFocus />
Context 🔦
I'm trying to make a form element that only accepts numbers. (html built-in form validation is fine)
Your Environment 🌎
The text was updated successfully, but these errors were encountered: