Skip to content

Commit b0a5ddf

Browse files
committed
fix: remove console.log
1 parent 3069120 commit b0a5ddf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/useFocusTrap.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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(() => {

0 commit comments

Comments
 (0)