@4i/modal-manager 1.0.61 → 1.0.62

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.61",
3
+ "version": "1.0.62",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -142,7 +142,7 @@ var ModalProvider = function (_a) {
142
142
  return (data.length !== 0 &&
143
143
  data.map(function (item, i) {
144
144
  var Modal = activeModals[i] || (function () { return react_1.default.createElement(react_1.default.Fragment, null); });
145
- return (react_1.default.createElement("div", { style: { zIndex: zIndex || 1000 + i }, key: item.modalId, onMouseDown: function (e) {
145
+ return (react_1.default.createElement("div", { style: { zIndex: zIndex || 1000 + i, position: "relative" }, key: item.modalId, onMouseDown: function (e) {
146
146
  isCloseOnBackdropClick && handleCloseModal(i, e);
147
147
  } },
148
148
  react_1.default.createElement("div", { className: "".concat(className, " backdrop_modal_manager ").concat(isHaveBackdrop && isCloseOnBackdropClick && "backdrop") },
@@ -140,7 +140,7 @@ const ModalProvider = ({
140
140
 
141
141
  return (
142
142
  <div
143
- style={{ zIndex: zIndex || 1000 + i }}
143
+ style={{ zIndex: zIndex || 1000 + i, position: "relative" }}
144
144
  key={item.modalId}
145
145
  onMouseDown={(e) => {
146
146
  isCloseOnBackdropClick && handleCloseModal(i, e);
package/tsconfig.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "compilerOptions": {
3
3
  "target": "es5",
4
4
  "module": "commonjs",
5
+ "esModuleInterop": true,
5
6
  "jsx": "react",
6
7
  "strict": true,
7
- "esModuleInterop": true,
8
8
  "skipLibCheck": true,
9
9
  "forceConsistentCasingInFileNames": true,
10
10
  "moduleResolution": "node",