We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 820dee7 commit 16a0948Copy full SHA for 16a0948
1 file changed
src/useFocusTrap.tsx
@@ -3,7 +3,7 @@ import { useRef } from 'react';
3
import useWindow from './useWindow.js';
4
import useMounted from '@restart/hooks/useMounted';
5
import useEventCallback from '@restart/hooks/useEventCallback';
6
-import { getTabbableElements, getTabbableElementsOrSelf } from './tabbable.js';
+import { getTabbableElementsOrSelf } from './tabbable.js';
7
import activeElement from 'dom-helpers/activeElement';
8
9
export function useFocusTrap({
@@ -82,7 +82,6 @@ export function useFocusTrap({
82
});
83
84
function handleFocus(event: FocusEvent) {
85
- console.log('handleFocus', event.target);
86
// the timeout is necessary b/c this will run before the new modal is mounted
87
// and so steals focus from it
88
setTimeout(() => handleEnforceFocus(event));
0 commit comments