rc-input-number
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -176,6 +176,8 @@ 'use strict'; | ||
setValue: function setValue(v, callback) { | ||
this.setState({ | ||
value: v | ||
}, callback); | ||
setValue: function setValue(v) { | ||
if (!('value' in this.props)) { | ||
this.setState({ | ||
value: v | ||
}); | ||
} | ||
this.props.onChange(v); | ||
@@ -185,4 +187,2 @@ }, | ||
step: function step(type, e) { | ||
var _this = this; | ||
if (e) { | ||
@@ -209,5 +209,4 @@ e.preventDefault(); | ||
} | ||
this.setValue(val, function () { | ||
React.findDOMNode(_this.refs.input).focus(); | ||
}); | ||
this.setValue(val); | ||
React.findDOMNode(this.refs.input).focus(); | ||
}, | ||
@@ -214,0 +213,0 @@ |
{ | ||
"name": "rc-input-number", | ||
"version": "2.1.2", | ||
"version": "2.2.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
15565