Skip to content

Commit

Permalink
Fix button click arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Feb 22, 2016
1 parent 19c5b29 commit c3014c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/button/button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export default class Button extends React.Component {
window.PIE.attach(findDOMNode(this));
}
}
handleClick() {
handleClick(...args) {
const buttonNode = findDOMNode(this);
buttonNode.className = buttonNode.className.replace(`${prefix}clicked`, '');
setTimeout(() => {
buttonNode.className += ` ${prefix}clicked`;
}, 10);
this.props.onClick();
this.props.onClick(...args);
}
render() {
const props = this.props;
Expand Down

0 comments on commit c3014c2

Please sign in to comment.