@primer/behaviors 0.0.0-20240222105352 → 0.0.0-20240306170128
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.
|
@@ -40,7 +40,7 @@ function getPositionedParent(element) {
|
|
|
40
40
|
function isOnTopLayer(element) {
|
|
41
41
|
var _a;
|
|
42
42
|
if (element.tagName === 'DIALOG') {
|
|
43
|
-
return
|
|
43
|
+
return true;
|
|
44
44
|
}
|
|
45
45
|
try {
|
|
46
46
|
if (element.matches(':popover-open') && /native code/.test((_a = document.body.showPopover) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
@@ -48,8 +48,9 @@ function isOnTopLayer(element) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
catch (_b) {
|
|
51
|
+
return false;
|
|
51
52
|
}
|
|
52
|
-
return
|
|
53
|
+
return false;
|
|
53
54
|
}
|
|
54
55
|
function getClippingRect(element) {
|
|
55
56
|
let parentNode = element;
|
|
@@ -36,7 +36,7 @@ function getPositionedParent(element) {
|
|
|
36
36
|
function isOnTopLayer(element) {
|
|
37
37
|
var _a;
|
|
38
38
|
if (element.tagName === 'DIALOG') {
|
|
39
|
-
return
|
|
39
|
+
return true;
|
|
40
40
|
}
|
|
41
41
|
try {
|
|
42
42
|
if (element.matches(':popover-open') && /native code/.test((_a = document.body.showPopover) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
@@ -44,8 +44,9 @@ function isOnTopLayer(element) {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
catch (_b) {
|
|
47
|
+
return false;
|
|
47
48
|
}
|
|
48
|
-
return
|
|
49
|
+
return false;
|
|
49
50
|
}
|
|
50
51
|
function getClippingRect(element) {
|
|
51
52
|
let parentNode = element;
|