@vaadin/a11y-base
Advanced tools
Comparing version 24.1.0-alpha4 to 24.1.0-alpha5
{ | ||
"name": "@vaadin/a11y-base", | ||
"version": "24.1.0-alpha4", | ||
"version": "24.1.0-alpha5", | ||
"publishConfig": { | ||
@@ -35,3 +35,3 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.1.0-alpha4", | ||
"@vaadin/component-base": "24.1.0-alpha5", | ||
"lit": "^2.0.0" | ||
@@ -44,3 +44,3 @@ }, | ||
}, | ||
"gitHead": "4494259f3b7532acb604a3048d5b29a4e14b9ca5" | ||
"gitHead": "1ab6c977fe239d94aac5f39940c1a4722ad4bb63" | ||
} |
@@ -8,2 +8,8 @@ /** | ||
/** | ||
* Returns the actually focused element by traversing shadow | ||
* trees recursively to ensure it's the leaf element. | ||
*/ | ||
export declare function getDeepActiveElement(): Element; | ||
/** | ||
* Returns true if the window has received a keydown | ||
@@ -10,0 +16,0 @@ * event since the last mousedown event. |
@@ -30,2 +30,16 @@ /** | ||
/** | ||
* Returns the actually focused element by traversing shadow | ||
* trees recursively to ensure it's the leaf element. | ||
* | ||
* @return {Element} | ||
*/ | ||
export function getDeepActiveElement() { | ||
let host = document.activeElement || document.body; | ||
while (host.shadowRoot && host.shadowRoot.activeElement) { | ||
host = host.shadowRoot.activeElement; | ||
} | ||
return host; | ||
} | ||
/** | ||
* Returns true if the window has received a keydown | ||
@@ -32,0 +46,0 @@ * event since the last mousedown event. |
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
99296
2617
+ Added@vaadin/component-base@24.1.0-alpha5(transitive)
- Removed@vaadin/component-base@24.1.0-alpha4(transitive)