Skip to content

Commit 2b27ea6

Browse files
committed
bug fixed
1 parent 7a1383f commit 2b27ea6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ve-table/src/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,10 @@ export default {
985985

986986
//this.$refs[this.tableContentRef].style.transform = `translate3d(0,${startOffset}px,0)`;
987987
window.requestAnimationFrame(() => {
988-
this.$refs[this.tableContentRef].style.top = `${startOffset}px`;
988+
const ele = this.$refs[this.tableContentRef];
989+
if (ele) {
990+
ele.style.top = `${startOffset}px`;
991+
}
989992
});
990993
},
991994
// get virtual scroll start index

0 commit comments

Comments
 (0)