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({
7272 }
7373
7474 ownerWindow . addEventListener ( 'focus' , handleFocus , { capture : true } ) ;
75- ownerWindow . addEventListener ( 'blur' , handleBlur ) ;
7675 document . addEventListener ( 'keydown' , handleKeydown ) ;
7776
7877 listenersRef . current . add ( ( ) => {
7978 ownerWindow . removeEventListener ( 'focus' , handleFocus , { capture : true } ) ;
80- ownerWindow . removeEventListener ( 'blur' , handleBlur ) ;
79+
8180 document . removeEventListener ( 'keydown' , handleKeydown ) ;
8281 } ) ;
8382
@@ -86,10 +85,6 @@ export function useFocusTrap({
8685 // and so steals focus from it
8786 setTimeout ( ( ) => handleEnforceFocus ( event ) ) ;
8887 }
89-
90- function handleBlur ( event : FocusEvent ) {
91- console . log ( 'handleBlur' , event . target ) ;
92- }
9388 } , [ handleEnforceFocus ] ) ;
9489
9590 const stop = useCallback ( ( ) => {
You can’t perform that action at this time.
0 commit comments