react-dialogger 1.1.122 → 1.1.124

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.
@@ -166,9 +166,15 @@ var DialogContent = function (props) {
166
166
  }, dialogRef);
167
167
  }, children: (0, jsx_runtime_1.jsx)("div", { id: "dialog-main", ref: dialogRef, onClick: function (e) {
168
168
  e.stopPropagation();
169
- var dom = dialog.getDom();
170
- if (dom) {
171
- dom.style.zIndex = String(dialog.props.zFinder() + 1);
169
+ if (dialog.dialogOptions.backdrop.throughable) {
170
+ var toppest = dialog.props.zFinder();
171
+ var dom = dialog.getDom();
172
+ console.log('toppest', parseInt(dom.style.zIndex), toppest);
173
+ if (dom) {
174
+ if (parseInt(dom.style.zIndex) < toppest) {
175
+ dom.style.zIndex = String(dialog.props.zFinder() + 1);
176
+ }
177
+ }
172
178
  }
173
179
  }, tabIndex: 0, onKeyDown: function (e) {
174
180
  var target = e.target;
package/models/Dialog.js CHANGED
@@ -77,7 +77,7 @@ var Dialog = /** @class */ (function () {
77
77
  highest = z;
78
78
  }
79
79
  });
80
- return highest + 1;
80
+ return highest;
81
81
  };
82
82
  this.createDom = function () {
83
83
  (0, appLogger_1.appLog)('this._actions', _this._actions);
@@ -86,7 +86,7 @@ var Dialog = /** @class */ (function () {
86
86
  dom.setAttribute('data-type', 'dialog');
87
87
  dom.setAttribute('data-family', 'presentation');
88
88
  dom.classList.add('react-guzzle-root');
89
- dom.style.setProperty('z-index', String(_this.highestZ()));
89
+ dom.style.setProperty('z-index', String(_this.highestZ() + 1));
90
90
  // Find root element
91
91
  var rootElement = document.getElementById('root');
92
92
  // const AppElement = rootElement.firstElementChild;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.122",
3
+ "version": "1.1.124",
4
4
  "description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
5
5
  "main": "index.js",
6
6
  "author": "Sueleyman Topaloglu",
@@ -230,7 +230,7 @@ export interface IBackdropOptions {
230
230
  backgroundColor?: string;
231
231
  opacity?: number;
232
232
  hideOnClick?: boolean;
233
- throughable?: false;
233
+ throughable?: boolean;
234
234
  }
235
235
  export type TNotifyOnClosing = "snackbar" | "zoom" | undefined;
236
236
  export type TInitialHolder = any;