rc-input-number
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -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": [ |
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
13640
282