react-confirm-alert 3.0.3 → 3.0.6

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
@@ -1,6 +1,7 @@
1
1
  # react-confirm-alert
2
2
 
3
3
  ### React 18 is supported!!
4
+ ### For React <= 17.x.x use version 2.x.x
4
5
 
5
6
  React component confirm dialog. [Live demo](https://ga-mo.github.io/react-confirm-alert/demo/)
6
7
 
@@ -38,7 +39,7 @@ const options = {
38
39
  closeOnClickOutside: true,
39
40
  keyCodeForClose: [8, 32],
40
41
  willUnmount: () => {},
41
- afterClose: () => {}
42
+ afterClose: () => {},
42
43
  onClickOutside: () => {},
43
44
  onKeypress: () => {},
44
45
  onKeypressEscape: () => {},
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.6",
4
4
  "description": "react component confirm dialog.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {