Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-input-number

Package Overview
Dependencies
Maintainers
2
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-input-number - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

17

lib/InputNumber.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc