We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41c29f3 commit 833c915Copy full SHA for 833c915
src/components/primitives/Tooltip.tsx
@@ -18,6 +18,7 @@ export default function Tooltip({ helper, onOpen, children, icon = true, classNa
18
const [isTouchDevice, setIsTouchDevice] = useState(false);
19
20
useEffect(() => {
21
+ if (typeof document === "undefined") return;
22
if (!("ontouchstart" in window)) return;
23
setIsTouchDevice(true);
24
}, []);
0 commit comments