react-dialogger 1.1.30 → 1.1.31
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/components/DialogBase.js +4 -2
- package/package.json +1 -1
package/components/DialogBase.js
CHANGED
|
@@ -580,7 +580,7 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
580
580
|
};
|
|
581
581
|
_this.highestZ = function () {
|
|
582
582
|
var presentationElements = document.querySelectorAll('div[role="presentation"]');
|
|
583
|
-
var highest =
|
|
583
|
+
var highest = 1201;
|
|
584
584
|
presentationElements.forEach(function (element) {
|
|
585
585
|
var z = parseInt(window.getComputedStyle(element).zIndex, 10);
|
|
586
586
|
if (!isNaN(z) && z > highest) {
|
|
@@ -985,11 +985,13 @@ var DialogBase = /** @class */ (function (_super) {
|
|
|
985
985
|
configurable: true
|
|
986
986
|
});
|
|
987
987
|
DialogBase.prototype.show = function (callback) {
|
|
988
|
+
var presentationElements = document.querySelectorAll('div[role="presentation"]');
|
|
989
|
+
console.log('String(this.highestZ()', presentationElements, String(this.highestZ()));
|
|
988
990
|
console.log('this._actions', this._actions);
|
|
989
991
|
this._dom = document.createElement('div');
|
|
990
992
|
this._dom.setAttribute('role', 'presentation');
|
|
991
993
|
this._dom.classList.add('appinsource-dialog-root');
|
|
992
|
-
this._dom.style.setProperty('
|
|
994
|
+
this._dom.style.setProperty('z-index', String(this.highestZ()));
|
|
993
995
|
// Find root element
|
|
994
996
|
var rootElement = document.getElementById('root');
|
|
995
997
|
// const AppElement = rootElement.firstElementChild;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.31",
|
|
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",
|