react-confirm-alert 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +5 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -154,11 +154,12 @@ var ReactConfirmAlert = (_temp2 = _class = function (_Component) {
154
154
  'button',
155
155
  _extends({
156
156
  key: i,
157
- onClick: function onClick() {
158
- return _this2.handleClickButton(button);
159
- },
160
157
  className: button.className
161
- }, button),
158
+ }, button, {
159
+ onClick: function onClick(e) {
160
+ return _this2.handleClickButton(button);
161
+ }
162
+ }),
162
163
  button.label
163
164
  );
164
165
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-confirm-alert",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "react component confirm dialog.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {