UNPKG
focus-lock
Version:
latest (1.3.6)
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.2
0.10.1
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.0
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.6
0.0.4
0.0.3
0.0.2
0.0.2-2
0.0.2-1
0.0.1
DOM trap for a focus
github.com/theKashey/focus-lock
theKashey/focus-lock
focus-lock
/
dist
/
es2015
/
focusInside.d.ts
6 lines
(5 loc)
•
256 B
TypeScript
View Raw
1
2
3
4
5
6
/** *
@returns
{
Boolean
} true, if the current focus is inside given node or nodes. * Supports nodes hidden inside shadowDom */
export
declare
const
focusInside
:
(
topNode
:
HTMLElement
|
HTMLElement
[],
activeElement
?:
HTMLElement
|
undefined
) =>
boolean
;