title: How to limit the text filed length with input type number in React JS and prevent entry of E,e, -, + etc
body: <p><strong>1.</strong> I want to limit the input type text field length to 6 (which means allow numbers only from 0 to 999999 range).</p>
  
  <p><strong>2.</strong> Even if it is of type number it allows entry of E, e, -, + . How to prevent this too.</p>
  
  <p>I have tried setting the min=0, max=999999 and maxlength=6 etc but none of them worked for me.
  Given bellow my input field code in react.</p>
  
  <pre><code>              &lt;TextField
                  id="sampleFiled"
                  label="VCode"
                  type="number"
                  required
                  className="text-field"
                  value={this.state.code}
                  margin="normal"
                /&gt;
  </code></pre>