File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useRef } from 'react';
33import useWindow from './useWindow.js' ;
44import useMounted from '@restart/hooks/useMounted' ;
55import useEventCallback from '@restart/hooks/useEventCallback' ;
6- import { getTabbableElements , getTabbableElementsOrSelf } from './tabbable.js' ;
6+ import { getTabbableElementsOrSelf } from './tabbable.js' ;
77import activeElement from 'dom-helpers/activeElement' ;
88
99export function useFocusTrap ( {
@@ -82,7 +82,6 @@ export function useFocusTrap({
8282 } ) ;
8383
8484 function handleFocus ( event : FocusEvent ) {
85- console . log ( 'handleFocus' , event . target ) ;
8685 // the timeout is necessary b/c this will run before the new modal is mounted
8786 // and so steals focus from it
8887 setTimeout ( ( ) => handleEnforceFocus ( event ) ) ;
You can’t perform that action at this time.
0 commit comments