We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e5ee00 commit 9ef5a5eCopy full SHA for 9ef5a5e
2 files changed
changelog.md
@@ -2,7 +2,9 @@
2
3
## UNRELEASED
4
5
-__Nothing yet...__
+**Fixed:**
6
+- bpk-component-button:
7
+ - Fixed SyntheticEvent not being passed to the onClick handler.
8
9
## 2017-08-17 (2) - Fix a missing dependency in several components
10
packages/bpk-component-button/src/BpkButton.js
@@ -71,9 +71,9 @@ const BpkButton = (props) => {
71
72
// Due to React bug in Chrome, the onClick event fires even if the button is disabled.
73
// Pull request is being worked on (as of 2016-12-22): https://github.com/facebook/react/pull/8329
74
- const onClickWrapper = onClick ? () => {
+ const onClickWrapper = onClick ? (...args) => {
75
if (!disabled) {
76
- onClick(...arguments);
+ onClick(...args);
77
}
78
} : null;
79
0 commit comments