Skip to content

Commit 10443ad

Browse files
authored
Merge pull request #23 from vtex/fix/button-onclick
Add event to onClick function
2 parents 92ce8a9 + 3c15a7c commit 10443ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Button/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Icon from '../Icon'
55
import Spinner from '../Spinner'
66

77
class Button extends Component {
8-
handleClick = () => {
9-
!this.props.disabled && this.props.onClick && this.props.onClick()
8+
handleClick = event => {
9+
!this.props.disabled && this.props.onClick && this.props.onClick(event)
1010
}
1111

1212
render() {

0 commit comments

Comments
 (0)