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.0.2 to 2.0.3

20

lib/InputNumber.js

@@ -143,3 +143,3 @@ 'use strict';

var prefixCls = props.prefixCls;
var classes = rcUtil.classSet((_rcUtil$classSet = {}, _defineProperty(_rcUtil$classSet, prefixCls, true), _defineProperty(_rcUtil$classSet, prefixCls + '-disabled', props.disabled), _defineProperty(_rcUtil$classSet, prefixCls + '-focused', this.state.focused), _rcUtil$classSet));
var classes = rcUtil.classSet((_rcUtil$classSet = {}, _defineProperty(_rcUtil$classSet, prefixCls, true), _defineProperty(_rcUtil$classSet, props.className, !!props.className), _defineProperty(_rcUtil$classSet, prefixCls + '-disabled', props.disabled), _defineProperty(_rcUtil$classSet, prefixCls + '-focused', this.state.focused), _rcUtil$classSet));
var upDisabledClass = '';

@@ -169,17 +169,19 @@ var downDisabledClass = '';

'div',
{ unselectable: 'unselectable',
ref: 'up',
{ unselectable: "unselectable",
ref: "up",
onClick: upDisabledClass ? noop : this.up,
onMouseDown: preventDefault,
className: prefixCls + '-handler ' + prefixCls + '-handler-up ' + upDisabledClass },
React.createElement('a', { unselectable: 'unselectable', className: prefixCls + '-handler-up-inner', href: '#', onClick: preventDefault })
React.createElement('a', { unselectable: "unselectable", className: prefixCls + '-handler-up-inner', href: "#",
onClick: preventDefault })
),
React.createElement(
'div',
{ unselectable: 'unselectable',
ref: 'down',
{ unselectable: "unselectable",
ref: "down",
onMouseDown: preventDefault,
onClick: downDisabledClass ? noop : this.down,
className: prefixCls + '-handler ' + prefixCls + '-handler-down ' + downDisabledClass },
React.createElement('a', { unselectable: 'unselectable', className: prefixCls + '-handler-down-inner', href: '#', onClick: preventDefault })
React.createElement('a', { unselectable: "unselectable", className: prefixCls + '-handler-down-inner', href: "#",
onClick: preventDefault })
)

@@ -191,3 +193,3 @@ ),

React.createElement('input', { className: prefixCls + '-input',
autoComplete: 'off',
autoComplete: "off",
onFocus: this.handleFocus,

@@ -203,3 +205,3 @@ onBlur: this.handleBlur,

onChange: this.onChange,
ref: 'input',
ref: "input",
value: this.state.value })

@@ -206,0 +208,0 @@ )

{
"name": "rc-input-number",
"version": "2.0.2",
"version": "2.0.3",
"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