Skip to content

Commit 16a0948

Browse files
committed
address feedback
1 parent 820dee7 commit 16a0948

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/useFocusTrap.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useRef } from 'react';
33
import useWindow from './useWindow.js';
44
import useMounted from '@restart/hooks/useMounted';
55
import useEventCallback from '@restart/hooks/useEventCallback';
6-
import { getTabbableElements, getTabbableElementsOrSelf } from './tabbable.js';
6+
import { getTabbableElementsOrSelf } from './tabbable.js';
77
import activeElement from 'dom-helpers/activeElement';
88

99
export 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));

0 commit comments

Comments
 (0)