Skip to content

Commit 9349d12

Browse files
authored
Replace deprecated mozInputSource check for virtual click detection (#8677)
1 parent a8dbaf6 commit 9349d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {isAndroid} from './platform';
2525

2626
export function isVirtualClick(event: MouseEvent | PointerEvent): boolean {
2727
// JAWS/NVDA with Firefox.
28-
if ((event as any).mozInputSource === 0 && event.isTrusted) {
28+
if ((event as PointerEvent).pointerType === '' && event.isTrusted) {
2929
return true;
3030
}
3131

0 commit comments

Comments
 (0)