Skip to content

Commit c3d4307

Browse files
committed
Revert "Fix firefox focusing Picker/Menu items when clicking with mouse"
This reverts commit 34bc815.
1 parent 98903a5 commit c3d4307

File tree

1 file changed

+1
-1
lines changed
  • packages/@react-aria/interactions/src

1 file changed

+1
-1
lines changed

packages/@react-aria/interactions/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function preventFocus(target: FocusableElement | null): (() => void) | un
114114

115115
let window = getOwnerWindow(target);
116116
let activeElement = window.document.activeElement as FocusableElement | null;
117-
if (!activeElement || !target || activeElement === target) {
117+
if (!activeElement || activeElement === target) {
118118
return;
119119
}
120120

0 commit comments

Comments
 (0)