@vaadin/a11y-base 24.9.0-rc1 → 24.9.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/a11y-base",
|
|
3
|
-
"version": "24.9.0
|
|
3
|
+
"version": "24.9.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
34
34
|
"@polymer/polymer": "^3.0.0",
|
|
35
|
-
"@vaadin/component-base": "24.9.0
|
|
35
|
+
"@vaadin/component-base": "~24.9.0",
|
|
36
36
|
"lit": "^3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@vaadin/chai-plugins": "24.9.0
|
|
40
|
-
"@vaadin/test-runner-commands": "24.9.0
|
|
39
|
+
"@vaadin/chai-plugins": "~24.9.0",
|
|
40
|
+
"@vaadin/test-runner-commands": "~24.9.0",
|
|
41
41
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
42
42
|
"sinon": "^18.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "2b92554ba17da82b8f27c455300fb3d5b57d76df"
|
|
45
45
|
}
|
|
@@ -29,16 +29,19 @@ export class FocusRestorationController {
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
const
|
|
32
|
+
const focusOptions = {
|
|
33
|
+
preventScroll: options ? options.preventScroll : false,
|
|
34
|
+
focusVisible: options ? options.focusVisible : false,
|
|
35
|
+
};
|
|
33
36
|
|
|
34
37
|
if (getDeepActiveElement() === document.body) {
|
|
35
38
|
// In Firefox and Safari, focusing the node synchronously
|
|
36
39
|
// doesn't work as expected when the overlay is closing on outside click.
|
|
37
40
|
// These browsers force focus to move to the body element and retain it
|
|
38
41
|
// there until the next event loop iteration.
|
|
39
|
-
setTimeout(() => focusNode.focus(
|
|
42
|
+
setTimeout(() => focusNode.focus(focusOptions));
|
|
40
43
|
} else {
|
|
41
|
-
focusNode.focus(
|
|
44
|
+
focusNode.focus(focusOptions);
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
this.focusNode = null;
|