diff options
Diffstat (limited to 'frontend/src/components/fields/extensions/NumericField.js')
-rw-r--r-- | frontend/src/components/fields/extensions/NumericField.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/fields/extensions/NumericField.js b/frontend/src/components/fields/extensions/NumericField.js index ed81ed7..19a9e46 100644 --- a/frontend/src/components/fields/extensions/NumericField.js +++ b/frontend/src/components/fields/extensions/NumericField.js @@ -21,7 +21,7 @@ class NumericField extends Component { value = value.toString().replace(/[^\d]/gi, ''); let intValue = 0; if (value !== "") { - intValue = parseInt(value); + intValue = parseInt(value, 10); } const valid = (!this.props.validate || (typeof this.props.validate === "function" && this.props.validate(intValue))) && |