Skip to content

Commit c6a71fa

Browse files
committed
Stop early if the headers clone table is not present
1 parent f5ed6f2 commit c6a71fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Table.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ export default {
130130
}
131131
132132
const theadClone = this.$refs['thead-clone'];
133+
if (!theadClone) {
134+
return;
135+
}
133136
134137
for (const entry of entries) {
135138
if (!entry.target.parentElement) {

0 commit comments

Comments
 (0)