@4i/modal-manager 1.0.41 → 1.0.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4i/modal-manager",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -128,7 +128,7 @@ var ModalProvider = function (_a) {
128
128
  return (data.length !== 0 &&
129
129
  data.map(function (item, i) {
130
130
  var Modal = activeModals[i] || (function () { return react_1.default.createElement(react_1.default.Fragment, null); });
131
- return (react_1.default.createElement("div", { key: item.modalId, onClick: function (e) {
131
+ return (react_1.default.createElement("div", { key: item.modalId, onMouseUp: function (e) {
132
132
  handleCloseModal(i, e);
133
133
  } },
134
134
  react_1.default.createElement("div", { className: "".concat(className, " backdrop_modal_manager") },
@@ -118,7 +118,7 @@ const ModalProvider = ({
118
118
  return (
119
119
  <div
120
120
  key={item.modalId}
121
- onClick={(e) => {
121
+ onMouseUp={(e) => {
122
122
  handleCloseModal(i, e);
123
123
  }}
124
124
  >