react-confirm-alert 3.0.2 → 3.0.5

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.
package/Readme.md CHANGED
@@ -38,7 +38,7 @@ const options = {
38
38
  closeOnClickOutside: true,
39
39
  keyCodeForClose: [8, 32],
40
40
  willUnmount: () => {},
41
- afterClose: () => {}
41
+ afterClose: () => {},
42
42
  onClickOutside: () => {},
43
43
  onKeypress: () => {},
44
44
  onKeypressEscape: () => {},
package/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import React, { ButtonHTMLAttributes } from 'react';
2
+
1
3
  declare module 'react-confirm-alert' {
2
4
  export interface ReactConfirmAlertProps {
3
5
  targetId?: string
@@ -6,7 +8,7 @@ declare module 'react-confirm-alert' {
6
8
  buttons?: Array<{
7
9
  label: string
8
10
  className?: string
9
- } & HTMLButtonElement>
11
+ } & ButtonHTMLAttributes<HTMLButtonElement>>
10
12
  childrenElement?: () => React.ReactNode
11
13
  customUI?: (customUiOptions: {
12
14
  title: string
package/lib/index.js CHANGED
@@ -59,6 +59,8 @@ var ReactConfirmAlert = (_temp2 = _class = function (_Component) {
59
59
  onClickOutside();
60
60
  _this.close();
61
61
  }
62
+
63
+ e.stopPropagation();
62
64
  }, _this.close = function () {
63
65
  var afterClose = _this.props.afterClose;
64
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-confirm-alert",
3
- "version": "3.0.2",
3
+ "version": "3.0.5",
4
4
  "description": "react component confirm dialog.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {