@atlaskit/modal-dialog 14.18.0 → 14.18.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 14.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a5e997ea70aac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a5e997ea70aac) -
|
|
8
|
+
Remove unnecessary boolean casting in if statement.
|
|
9
|
+
|
|
3
10
|
## 14.18.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -32,7 +32,7 @@ var fillScreenStyles = null;
|
|
|
32
32
|
var allowlistElements = function allowlistElements(element, callback) {
|
|
33
33
|
// Allow focus to reach elements outside the modal:
|
|
34
34
|
// if AUI dialog is allowListed and visible
|
|
35
|
-
if (
|
|
35
|
+
if (document.querySelector('.aui-blanket:not([hidden])')) {
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
38
38
|
// allows to pass a callback function to allow elements be ignored by focus lock
|
|
@@ -23,7 +23,7 @@ const fillScreenStyles = null;
|
|
|
23
23
|
const allowlistElements = (element, callback) => {
|
|
24
24
|
// Allow focus to reach elements outside the modal:
|
|
25
25
|
// if AUI dialog is allowListed and visible
|
|
26
|
-
if (
|
|
26
|
+
if (document.querySelector('.aui-blanket:not([hidden])')) {
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
29
29
|
// allows to pass a callback function to allow elements be ignored by focus lock
|
|
@@ -23,7 +23,7 @@ var fillScreenStyles = null;
|
|
|
23
23
|
var allowlistElements = function allowlistElements(element, callback) {
|
|
24
24
|
// Allow focus to reach elements outside the modal:
|
|
25
25
|
// if AUI dialog is allowListed and visible
|
|
26
|
-
if (
|
|
26
|
+
if (document.querySelector('.aui-blanket:not([hidden])')) {
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
29
29
|
// allows to pass a callback function to allow elements be ignored by focus lock
|
package/package.json
CHANGED