Skip to content

Commit 86cfce9

Browse files
refactor: add additional ssr check
1 parent 5d2ea9f commit 86cfce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
...data,
88
on: {
99
// Ignore scroll function on server side
10-
click: _ssrNode ? undefined : clickFunction
10+
click: _ssrNode || process.server ? undefined : clickFunction
1111
}
1212
}, children)
1313
}

0 commit comments

Comments
 (0)