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.
2 parents 62b7121 + 5c16f70 commit e5c7189Copy full SHA for e5c7189
src/composables/useClickAway.js
@@ -4,7 +4,7 @@ import useEventListener from "./useEventListener";
4
export default function useClickAway(target, handler) {
5
const event = "pointerdown";
6
7
- if (!window) {
+ if (typeof window === 'undefined' || !window) {
8
return;
9
}
10
0 commit comments