Skip to content

Commit

Permalink
fix: upgrade rmc-feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
KgTong committed May 7, 2018
1 parent 520d396 commit 589b1f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "rc-input-number",
"version": "4.0.6",
"version": "4.0.7",
"description": "React input-number component",
"keywords": [
"react",
Expand Down Expand Up @@ -66,7 +66,7 @@
"classnames": "^2.2.0",
"is-negative-zero": "^2.0.0",
"prop-types": "^15.5.7",
"rmc-feedback": "^1.0.0"
"rmc-feedback": "^2.0.0"
},
"pre-commit": [
"lint"
Expand Down
8 changes: 1 addition & 7 deletions src/InputHandler.js
Expand Up @@ -5,17 +5,11 @@ import Touchable from 'rmc-feedback';
class InputHandler extends Component {
render() {
const {
prefixCls, disabled, onTouchStart, onTouchEnd,
onMouseDown, onMouseUp, onMouseLeave, ...otherProps,
prefixCls, disabled, ...otherProps,
} = this.props;
return (
<Touchable
disabled={disabled}
onTouchStart={onTouchStart}
onTouchEnd={onTouchEnd}
onMouseDown={onMouseDown}
onMouseUp={onMouseUp}
onMouseLeave={onMouseLeave}
activeClassName={`${prefixCls}-handler-active`}
>
<span {...otherProps} />
Expand Down

0 comments on commit 589b1f3

Please sign in to comment.