rc-input-number
Advanced tools
Comparing version 2.4.7 to 2.5.0
@@ -31,3 +31,3 @@ 'use strict'; | ||
onBlur: _react2['default'].PropTypes.func, | ||
step: _react2['default'].PropTypes.number | ||
step: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.number, _react2['default'].PropTypes.string]) | ||
}, | ||
@@ -140,3 +140,3 @@ | ||
} | ||
this.props.onChange(typeof v === 'number' ? v : undefined); | ||
this.props.onChange(isNaN(v) ? undefined : v); | ||
}, | ||
@@ -173,3 +173,3 @@ | ||
var precision = this.getPrecision(); | ||
return Number(Number(num).toFixed(precision)); | ||
return Number(num).toFixed(precision); | ||
}, | ||
@@ -176,0 +176,0 @@ |
{ | ||
"name": "rc-input-number", | ||
"version": "2.4.7", | ||
"version": "2.5.0", | ||
"description": "input-number ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18566