@vaadin/a11y-base
Advanced tools
Comparing version 24.5.0-alpha1 to 24.5.0-alpha10
{ | ||
"name": "@vaadin/a11y-base", | ||
"version": "24.5.0-alpha1", | ||
"version": "24.5.0-alpha10", | ||
"publishConfig": { | ||
@@ -35,11 +35,11 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.5.0-alpha1", | ||
"@vaadin/component-base": "24.5.0-alpha10", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/testing-helpers": "^0.6.0", | ||
"sinon": "^13.0.2" | ||
"@vaadin/chai-plugins": "24.5.0-alpha10", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
"sinon": "^18.0.0" | ||
}, | ||
"gitHead": "57806caac5468532a3b4e3dbdda730cd0fca193a" | ||
"gitHead": "6f9c37308031af872a98017bfab4de89aeacda51" | ||
} |
@@ -7,3 +7,3 @@ # @vaadin/a11y-base | ||
Read the [contributing guide](https://vaadin.com/docs/latest/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components. | ||
Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components. | ||
@@ -10,0 +10,0 @@ ## License |
@@ -26,3 +26,3 @@ /** | ||
*/ | ||
restoreFocus() { | ||
restoreFocus(options) { | ||
const focusNode = this.focusNode; | ||
@@ -33,2 +33,4 @@ if (!focusNode) { | ||
const preventScroll = options ? options.preventScroll : false; | ||
if (getDeepActiveElement() === document.body) { | ||
@@ -39,5 +41,5 @@ // In Firefox and Safari, focusing the node synchronously | ||
// there until the next event loop iteration. | ||
setTimeout(() => focusNode.focus()); | ||
setTimeout(() => focusNode.focus({ preventScroll })); | ||
} else { | ||
focusNode.focus(); | ||
focusNode.focus({ preventScroll }); | ||
} | ||
@@ -44,0 +46,0 @@ |
@@ -169,3 +169,4 @@ /** | ||
this._setFocusable(selected || 0); | ||
// When selected is set to -1, focus the first available item. | ||
this._setFocusable(selected < 0 || !selected ? 0 : selected); | ||
@@ -172,0 +173,0 @@ const itemToSelect = items[selected]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103307
2724
+ Added@vaadin/component-base@24.5.0-alpha10(transitive)
- Removed@vaadin/component-base@24.5.0-alpha1(transitive)