File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
packages/react/focus-guards/src Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ function FocusGuards(props: FocusGuardsProps) {
17
17
* to ensure `focusin` & `focusout` events can be caught consistently.
18
18
*/
19
19
function useFocusGuards ( ) {
20
- /* eslint-disable no-restricted-globals */
21
20
React . useEffect ( ( ) => {
22
21
const edgeGuards = document . querySelectorAll ( '[data-radix-focus-guard]' ) ;
23
22
document . body . insertAdjacentElement ( 'afterbegin' , edgeGuards [ 0 ] ?? createFocusGuard ( ) ) ;
@@ -31,11 +30,9 @@ function useFocusGuards() {
31
30
count -- ;
32
31
} ;
33
32
} , [ ] ) ;
34
- /* eslint-enable no-restricted-globals */
35
33
}
36
34
37
35
function createFocusGuard ( ) {
38
- // eslint-disable-next-line no-restricted-globals
39
36
const element = document . createElement ( 'span' ) ;
40
37
element . setAttribute ( 'data-radix-focus-guard' , '' ) ;
41
38
element . tabIndex = 0 ;
You can’t perform that action at this time.
0 commit comments