Get invalid value from input type number : <p>I am using input type number. How can I get the value from this when its not valid. For example using type number and printing just 'e' thats not valid by itself.</p>

<p>I am using React but I think this question is very general. </p>

<pre><code>onChange(event) {
  console.log(event.target.value) //is empty string when not using number
}

&lt;form novalidate&gt;
  &lt;input type="number" onChange={this.onChange}&gt;
&lt;/form&gt;
</code></pre>
