diff --git a/components/button/button.jsx b/components/button/button.jsx index 3692ce9cad..59111b7605 100644 --- a/components/button/button.jsx +++ b/components/button/button.jsx @@ -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;