mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
remove space
apologies – this happened during the manual merge.
This commit is contained in:
parent
8697922d3b
commit
88b2d3bf8f
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export default function (Input) {
|
|||
handleChange (e) {
|
||||
const isNumeric = typeof this.props.value === 'number';
|
||||
const validatesNumeric = isNumeric ? !isNaN(e.target.value) : true;
|
||||
if (e.target.value !== null && validatesNumeric ) {
|
||||
if (e.target.value !== null && validatesNumeric) {
|
||||
let val = Number(e.target.value);
|
||||
if (typeof this.props.max !== 'undefined' && val > Number(this.props.max)) {
|
||||
val = this.props.max;
|
||||
|
|
Loading…
Reference in a new issue