File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,11 @@ export function useFocusTrap({
72
72
}
73
73
74
74
ownerWindow . addEventListener ( 'focus' , handleFocus , { capture : true } ) ;
75
- ownerWindow . addEventListener ( 'blur' , handleBlur ) ;
76
75
document . addEventListener ( 'keydown' , handleKeydown ) ;
77
76
78
77
listenersRef . current . add ( ( ) => {
79
78
ownerWindow . removeEventListener ( 'focus' , handleFocus , { capture : true } ) ;
80
- ownerWindow . removeEventListener ( 'blur' , handleBlur ) ;
79
+
81
80
document . removeEventListener ( 'keydown' , handleKeydown ) ;
82
81
} ) ;
83
82
@@ -86,10 +85,6 @@ export function useFocusTrap({
86
85
// and so steals focus from it
87
86
setTimeout ( ( ) => handleEnforceFocus ( event ) ) ;
88
87
}
89
-
90
- function handleBlur ( event : FocusEvent ) {
91
- console . log ( 'handleBlur' , event . target ) ;
92
- }
93
88
} , [ handleEnforceFocus ] ) ;
94
89
95
90
const stop = useCallback ( ( ) => {
You can’t perform that action at this time.
0 commit comments