@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
@@ -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