Skip to content

Commit e24a7bc

Browse files
committed
Fix server side render error. #115
1 parent f8308a0 commit e24a7bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
7272
default: false
7373
},
7474
scrollelement: {
75-
type: HTMLElement,
75+
type: typeof window === 'undefined' ? Object : HTMLElement,
7676
default: null
7777
},
7878
start: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-virtual-scroll-list",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "A vue component support big amount data list with high scroll performance.",
55
"main": "dist/index.js",
66
"files": [

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
default: false
6565
},
6666
scrollelement: {
67-
type: HTMLElement,
67+
type: typeof window === 'undefined' ? Object : HTMLElement,
6868
default: null
6969
},
7070
start: {

0 commit comments

Comments
 (0)