UNPKG
@fluentui/dom-utilities
Version:
beta (2.0.0-beta.2)
latest (2.3.10)
2.3.10
2.3.9
2.3.8
2.3.7
2.3.6
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.16
2.2.15
2.2.14
2.2.13
2.2.12
2.2.11
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0-beta.2
2.0.0-beta.1
2.0.0-beta.0
1.1.2
1.1.1
1.1.0
DOM utilities for use within Fluent web components
github.com/microsoft/fluentui
microsoft/fluentui
@fluentui/dom-utilities
/
lib
/
getActiveElement.js
8 lines
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
var
getActiveElement =
function
(
doc
) {
var
ae = doc.
activeElement
;
while
(ae ===
null
|| ae ===
void
0
?
void
0
: ae.
shadowRoot
) { ae = ae.
shadowRoot
.
activeElement
; }
return
ae; };
//# sourceMappingURL=getActiveElement.js.map