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 ed2c240 commit 47e4790Copy full SHA for 47e4790
packages/@react-aria/dnd/src/utils.ts
@@ -62,7 +62,7 @@ function mapModality(modality: string) {
62
modality = 'virtual';
63
}
64
65
- if (modality === 'virtual' && 'ontouchstart' in window) {
+ if (modality === 'virtual' && (typeof window !== 'undefined' && 'ontouchstart' in window)) {
66
modality = 'touch';
67
68
0 commit comments