We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98903a5 commit c3d4307Copy full SHA for c3d4307
packages/@react-aria/interactions/src/utils.ts
@@ -114,7 +114,7 @@ export function preventFocus(target: FocusableElement | null): (() => void) | un
114
115
let window = getOwnerWindow(target);
116
let activeElement = window.document.activeElement as FocusableElement | null;
117
- if (!activeElement || !target || activeElement === target) {
+ if (!activeElement || activeElement === target) {
118
return;
119
}
120
0 commit comments