@bit-sun/business-component 2.1.1-alpha.0 → 2.1.1-alpha.1
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/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/utils/utils.ts +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2154,7 +2154,7 @@ var go2BackAndClose = function go2BackAndClose() {
|
|
|
2154
2154
|
var getModalContainer = function getModalContainer() {
|
|
2155
2155
|
try {
|
|
2156
2156
|
if (window.top != window && window.parent.document) {
|
|
2157
|
-
return window.parent.document.body;
|
|
2157
|
+
return window.parent.document.getElementById('root-master') || document.body;
|
|
2158
2158
|
}
|
|
2159
2159
|
} catch (error) {
|
|
2160
2160
|
console.log(error);
|
package/dist/index.js
CHANGED
|
@@ -2168,7 +2168,7 @@ var go2BackAndClose = function go2BackAndClose() {
|
|
|
2168
2168
|
var getModalContainer = function getModalContainer() {
|
|
2169
2169
|
try {
|
|
2170
2170
|
if (window.top != window && window.parent.document) {
|
|
2171
|
-
return window.parent.document.body;
|
|
2171
|
+
return window.parent.document.getElementById('root-master') || document.body;
|
|
2172
2172
|
}
|
|
2173
2173
|
} catch (error) {
|
|
2174
2174
|
console.log(error);
|
package/package.json
CHANGED
package/src/utils/utils.ts
CHANGED
|
@@ -60,10 +60,10 @@ export const go2BackAndClose = () => {
|
|
|
60
60
|
export const getModalContainer = () => {
|
|
61
61
|
try {
|
|
62
62
|
if (window.top != window && window.parent.document) {
|
|
63
|
-
return window.parent.document.body
|
|
63
|
+
return window.parent.document.getElementById('root-master') || document.body;
|
|
64
64
|
}
|
|
65
65
|
} catch (error) {
|
|
66
66
|
console.log(error)
|
|
67
67
|
}
|
|
68
|
-
return document.body
|
|
68
|
+
return document.body;
|
|
69
69
|
}
|