Socket
Socket
Sign inDemoInstall

rc-input-number

Package Overview
Dependencies
Maintainers
3
Versions
217
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.5.11 to 2.5.12

10

lib/InputNumber.js

@@ -267,6 +267,2 @@ 'use strict';

var props = _extends({}, this.props);
// Remove React warning.
// Warning: Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both).
delete props.defaultValue;
var prefixCls = props.prefixCls;

@@ -299,2 +295,8 @@ var classes = (0, _classnames2['default'])((_classNames = {}, _defineProperty(_classNames, prefixCls, true), _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, prefixCls + '-disabled', props.disabled), _defineProperty(_classNames, prefixCls + '-focused', this.state.focused), _classNames));

// Remove React warning.
// Warning: Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both).
delete props.defaultValue;
// https://fb.me/react-unknown-prop
delete props.prefixCls;
// ref for test

@@ -301,0 +303,0 @@ return _react2['default'].createElement(

8

package.json
{
"name": "rc-input-number",
"version": "2.5.11",
"version": "2.5.12",
"description": "input-number ui component for react",

@@ -46,5 +46,5 @@ "keywords": [

"rc-util": "^3.1.2",
"react": "~0.14.0",
"react-addons-test-utils": "^0.14.0",
"react-dom": "^0.14.0"
"react": "^15.2.0",
"react-addons-test-utils": "^15.2.0",
"react-dom": "^15.2.0"
},

@@ -51,0 +51,0 @@ "dependencies": {

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