UNPKG
@lion/overlays
Version:
latest (0.33.2)
lit1 (0.27.6)
0.33.2
0.33.1
0.33.0
0.32.0
0.31.0
0.30.0
0.29.1
0.29.0
0.28.4
0.28.3
0.28.2
0.28.1
0.28.0
0.27.6
0.27.5
0.27.4
0.27.3
0.27.2
0.27.1
0.27.0
0.26.1
0.26.0
0.25.2
0.25.1
0.25.0
0.24.2
0.24.1
0.24.0
0.23.4
0.23.3
0.23.2
0.23.1
0.23.0
0.22.8
0.22.7
0.22.6
0.22.5
0.22.4
0.22.3
0.22.2
0.22.1
0.22.0
0.21.3
0.21.2
0.21.1
0.21.0
0.20.0
0.19.0
0.18.0
0.17.0
0.16.13
0.16.12
0.16.11
0.16.10
0.16.9
0.16.8
0.16.7
0.16.6
0.16.5
0.16.4
0.16.3
0.16.2
0.16.1
0.16.0
0.15.3
0.15.2
0.15.1
0.15.0
0.14.0
0.13.3
0.13.2
0.13.1
0.13.0
0.12.9
0.12.8
0.12.7
0.12.6
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.3
0.11.2
0.11.1
0.11.0
0.10.1
0.10.0
0.9.0
0.8.0
0.7.1
0.7.0
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.0
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Overlays System using lit-html for rendering
github.com/ing-bank/lion/
ing-bank/lion
@lion/overlays
/
src
/
utils
/
get-deep-active-element.d.ts
9 lines
(8 loc)
•
253 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * Returns the activeElement, even when they are inside a shadowRoot. * (If an element in a shadowRoot is focused, document.activeElement * returns the shadowRoot host. * * @returns {Element} */
export
function
getDeepActiveElement
()
: Element;